| | |
| | | if (Objects.isNull(one)) { |
| | | throw new CoolException("单据:" + syncOrder.getOrderNo() + ", 业务类型不存在!!"); |
| | | } |
| | | Loc serviceOne = null; |
| | | if (!Objects.isNull(syncOrder.getOrgLoc())) { |
| | | serviceOne = locService.getOne(new LambdaQueryWrapper<Loc>().eq(!Objects.isNull(syncOrder.getOrgLoc()), Loc::getCode, syncOrder.getOrgLoc())); |
| | | } |
| | | if (!Objects.isNull(serviceOne)) { |
| | | //TODO 添加调拔移库单功能 |
| | | } else { |
| | | WkOrder order = asnOrderService.getOne(new LambdaQueryWrapper<WkOrder>() |
| | | .eq(!Objects.isNull(syncOrder.getOrderId()), WkOrder::getPoId, syncOrder.getOrderId()) |
| | | .eq(WkOrder::getPoCode, syncOrder.getOrderNo())); |
| | |
| | | if (!asnOrderService.updateById(wkOrder)) { |
| | | throw new CoolException("计划收货数量修改失败!!"); |
| | | } |
| | | } |
| | | }); |
| | | } |
| | | return R.ok(); |