| | |
| | | XSR response = null; |
| | | boolean success = false; |
| | | try { |
| | | // List<ReportOrderParam> orderParams = new ArrayList<>(); |
| | | // orderParams.add(orderParam); |
| | | // if (order.getReportOnce() < 4) { |
| | | // response = kopenApiService.getOutDetailsResult(orderParams, order); |
| | | // } else { |
| | | // return FAIL; |
| | | // } |
| | | // response = new HttpHandler.Builder() |
| | | // .setUri(MesConstant.URL) |
| | | // .setPath(MesConstant.PAKOUT_URL) |
| | | // .setJson(JSON.toJSONString(pakoutParam)) |
| | | // .build() |
| | | // .doPost(); |
| | | // JSONObject jsonObject = JSON.parseObject(response); |
| | | // if (jsonObject.getInteger("code").equals(200)) { |
| | | List<ReportOrderParam> orderParams = new ArrayList<>(); |
| | | orderParams.add(orderParam); |
| | | if (order.getReportOnce() < 4) { |
| | | response = kopenApiService.reportOutDetailsResult(orderParams, order); |
| | | } else { |
| | | return FAIL; |
| | | } |
| | | |
| | | if (true) { |
| | | success = true; |
| | | // 修改订单状态 4.完成 ===>> 6.已上报 |