| | |
| | | // if (Objects.isNull(params.getType())) { |
| | | // return XSR.error("单据类型不能为空!"); |
| | | // } |
| | | return kopenApiService.receiveOrders(params); |
| | | return kopenApiService.receiveOrders(params, "add"); |
| | | } |
| | | |
| | | /** |
| | | * 上架派工单变更 |
| | | * @author Ryan |
| | | * @date 2025/11/24 15:22 |
| | | * @param params |
| | | * @return com.core.common.R |
| | | */ |
| | | @ApiOperation("上架派工单变更") |
| | | @PostMapping("/sendInDispatchCancel") |
| | | public XSR dispatchUpdate(@RequestBody List<PubOrderParams> params) { |
| | | if (Objects.isNull(params)) { |
| | | return XSR.error("参数不能为空!!"); |
| | | } |
| | | // if (Objects.isNull(params.getType())) { |
| | | // return XSR.error("单据类型不能为空!"); |
| | | // } |
| | | return kopenApiService.receiveOrders(params, "update"); |
| | | } |
| | | |
| | | /** |
| | |
| | | // if (Objects.isNull(params.getDetails()) || params.getDetails().isEmpty()) { |
| | | // return XSR.error("上报订单列表不能为空!!"); |
| | | // } |
| | | return kopenApiService.sendOutDispatch(params); |
| | | return kopenApiService.sendOutDispatch(params, "add"); |
| | | } |
| | | |
| | | /** |
| | | * 备货指示派工单变更 |
| | | * @author Ryan |
| | | * @date 2025/11/24 15:22 |
| | | * @param params |
| | | * @return com.core.common.R |
| | | */ |
| | | @ApiOperation("备货指示派工单变更") |
| | | @PostMapping("/sendOutDispacthCancel") |
| | | public XSR sendOutDispatchCancel(@RequestBody List<PubOrderParams> params) { |
| | | if (Objects.isNull(params)) { |
| | | return XSR.error("参数不能为空!!"); |
| | | } |
| | | // if (Objects.isNull(params.getDetails()) || params.getDetails().isEmpty()) { |
| | | // return XSR.error("上报订单列表不能为空!!"); |
| | | // } |
| | | return kopenApiService.sendOutDispatch(params, "update"); |
| | | } |
| | | |
| | | |