| | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.concurrent.TimeUnit; |
| | | |
| | | /** |
| | | * Created by vincent on 2022/4/9 |
| | |
| | | |
| | | @Autowired |
| | | private OrderService orderService; |
| | | @Autowired |
| | | private OrderLogService orderLogService; |
| | | @Autowired |
| | | private OrderDetlService orderDetlService; |
| | | @Autowired |
| | |
| | | } |
| | | orderService.remove(order.getId()); |
| | | } |
| | | OrderLog orderLog = orderLogService.selectByNo(param.getCCode()); |
| | | if (!Cools.isEmpty(orderLog)) { |
| | | throw new CoolException(param.getCCode() + "单据已经完成,不需要再传递"); |
| | | } |
| | | |
| | | DocType docType = docTypeService.selectOrAdd(param.getType(), Boolean.FALSE); |
| | | Date now = new Date(); |
| | | |
| | |
| | | OpenOrderPakoutParam.Body body = new OpenOrderPakoutParam.Body(); |
| | | body.setcInvCode(mat.getMatnr()); |
| | | body.setiQuantity(pla.getWeightAnfme()); |
| | | body.setcBatch(""); |
| | | body.setcBatch(pla.getBatch()); |
| | | body.setCPackage(pla.getPackageNo()+""); |
| | | body.setCbMemo(pla.getMemo()); |
| | | bodyList.add(body); |
| | | |
| | |
| | | body = new OpenOrderPakoutParam.Body(); |
| | | body.setcInvCode(mat.getMatnr()); |
| | | body.setiQuantity(pla.getWeightAnfme()); |
| | | body.setcBatch(pla.getBatch()); |
| | | body.setCPackage(pla.getPackageNo()+""); |
| | | body.setCbMemo(pla.getMemo()); |
| | | bodyList.add(body); |
| | | } else { |
| | | body.setiQuantity(body.getIQuantity() + pla.getWeightAnfme()); |
| | | body.setcBatch(pla.getBatch()); |
| | | body.setCPackage(pla.getPackageNo()+""); |
| | | } |
| | | } |
| | | } |
| | |
| | | log.info("请求参数:{}", requestParam); |
| | | response = new HttpHandler.Builder() |
| | | .setUri(url) |
| | | .setTimeout(30, TimeUnit.SECONDS) |
| | | .setPath(path) |
| | | .setJson(JSONObject.toJSONString(requestParam)) |
| | | .build() |