| | |
| | | private TaskService taskService;
|
| | | @Autowired
|
| | | private WaitPakinRuleService waitPakinRuleService;
|
| | | @Autowired
|
| | | private WaitPakinService waitPakinService;
|
| | |
|
| | | @Override
|
| | | public List<WaitPakin> getByOrderDetlId(Long orderDetlId) {
|
| | |
| | | }
|
| | | }
|
| | |
|
| | |
|
| | | //查询是否存在相同明细和托盘码的组托通知档
|
| | | WaitPakin waitPakin1 = this.getOne(new LambdaQueryWrapper<WaitPakin>()
|
| | | .eq(WaitPakin::getBarcode, waitPakin.getBarcode())
|
| | | .eq(WaitPakin::getDetlId, waitPakin.getDetlId()));
|
| | |
|
| | | if (waitPakin1 == null) {
|
| | | //不存在组托通知档,创建
|
| | | waitPakin.setMatnr(orderDetl.getMat$().getMatnr());
|
| | |
| | | orderDetlService.updateById(orderDetl);
|
| | | }
|
| | |
|
| | | if (orderDetl.getWaitQty().compareTo(orderDetl.getAnfme()) >= 0) {
|
| | | waitPakin.setSort(0);
|
| | | } else if (orderDetl.getWaitQty().compareTo(0.0) > 0) {
|
| | | waitPakin.setSort(55);
|
| | | } else {
|
| | | waitPakin.setSort(49);
|
| | | }
|
| | | waitPakinService.updateById(waitPakin);
|
| | |
|
| | | //更新订单状态
|
| | | if (order.getOrderSettle().equals(OrderSettleType.INIT.val())) {
|
| | | order.setOrderSettle(OrderSettleType.WAIT.val());
|