| | |
| | | import com.zy.api.entity.StockAdjustParams; |
| | | import com.zy.api.entity.StockUpOrderParams; |
| | | import com.zy.api.entity.dto.XSR; |
| | | import com.zy.api.enums.MatLocType; |
| | | import com.zy.api.service.KopenApiService; |
| | | import com.zy.asrs.entity.*; |
| | | import com.zy.asrs.enums.OrderTypeEnum; |
| | |
| | | .setPro_id(detl.getSuppCode()) |
| | | .setLocation_no(locDetl.getZpallet()) |
| | | .setSj_emp(locDetl.getModiUser$()) |
| | | .setLocation_type(material.getTagId() + "") |
| | | .setLocation_type(MatLocType.getMatTag(material.getTagId() + "")) |
| | | // 上报时,默认上报时间是更新时间 |
| | | .setSj_date(Utils.dateToStr(order.getUpdateTime(), "yyyy-MM-dd HH:mm:ss") ) |
| | | // 上报时,默认上报人是更新人 |
| | |
| | | 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.已上报 |