| | |
| | | .setLocation_type(MatLocType.getMatTag(material.getTagId() + "")) |
| | | // 上报时,默认上报时间是更新时间 |
| | | .setSj_date(Utils.dateToStr(order.getUpdateTime(), "yyyy-MM-dd HH:mm:ss") ) |
| | | // 上报时,默认上报人是更新人 |
| | | .setSj_emp(order.getUpdateBy$()) |
| | | // 上报时,默认上报数量是订单数量 |
| | | .setPick_qty(detl.getQty().intValue()) |
| | | // 上报时,默认损坏数量是0 |
| | |
| | | try { |
| | | List<ReportOrderParam> orderParams = new ArrayList<>(); |
| | | orderParams.add(orderParam); |
| | | response = kopenApiService.getInDispatchResult(orderParams); |
| | | |
| | | if (order.getReportOnce() < 4) { |
| | | response = kopenApiService.getInDispatchResult(orderParams, order); |
| | | } else { |
| | | return FAIL; |
| | | } |
| | | // if (true) { |
| | | // success = true; |
| | | // // 修改订单状态 4.完成 ===>> 6.已上报 |