| | |
| | | */ |
| | | @ApiOperation("上架派工单") |
| | | @PostMapping("/sendInDispatch") |
| | | public XSR receiveOrders(@RequestBody PubOrderParams params) { |
| | | public XSR receiveOrders(@RequestBody List<PubOrderParams> params) { |
| | | if (Objects.isNull(params)) { |
| | | return XSR.error("参数不能为空!!"); |
| | | } |
| | | if (Objects.isNull(params.getType())) { |
| | | return XSR.error("单据类型不能为空!"); |
| | | // if (Objects.isNull(params.getType())) { |
| | | // return XSR.error("单据类型不能为空!"); |
| | | // } |
| | | 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("参数不能为空!!"); |
| | | } |
| | | return kopenApiService.receiveOrders(params); |
| | | // if (Objects.isNull(params.getType())) { |
| | | // return XSR.error("单据类型不能为空!"); |
| | | // } |
| | | return kopenApiService.receiveOrders(params, "update"); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | @ApiOperation("上架派工单反馈") |
| | | @PostMapping("/getInDispatchResult") |
| | | public XSR getInDispatchResult(@RequestBody ReportOrderParam params) { |
| | | public XSR getInDispatchResult(@RequestBody List<ReportOrderParam> params) { |
| | | if (Objects.isNull(params)) { |
| | | return XSR.error("参数不能为空!!"); |
| | | } |
| | | if (Objects.isNull(params.getKopen_id()) && Objects.isNull(params.getInv_no()) && Objects.isNull(params.getDispatch_no())) { |
| | | return XSR.error("取消条件不能为空!!"); |
| | | } |
| | | return kopenApiService.getInDispatchResult(params); |
| | | // if (Objects.isNull(params.getKopen_id()) && Objects.isNull(params.getInv_no()) && Objects.isNull(params.getDispatch_no())) { |
| | | // return XSR.error("取消条件不能为空!!"); |
| | | // } |
| | | return kopenApiService.getInDispatchResult(params, null); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | @ApiOperation("备货指示派工单下发") |
| | | @PostMapping("/sendOutDispatch") |
| | | public XSR sendStockPrepareDispatch(@RequestBody PubOrderParams params) { |
| | | public XSR sendStockPrepareDispatch(@RequestBody List<PubOrderParams> params) { |
| | | if (Objects.isNull(params)) { |
| | | return XSR.error("参数不能为空!!"); |
| | | } |
| | | if (Objects.isNull(params.getDetails()) || params.getDetails().isEmpty()) { |
| | | return XSR.error("上报订单列表不能为空!!"); |
| | | // if (Objects.isNull(params.getDetails()) || params.getDetails().isEmpty()) { |
| | | // return XSR.error("上报订单列表不能为空!!"); |
| | | // } |
| | | 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("参数不能为空!!"); |
| | | } |
| | | return kopenApiService.sendOutDispatch(params); |
| | | // if (Objects.isNull(params.getDetails()) || params.getDetails().isEmpty()) { |
| | | // return XSR.error("上报订单列表不能为空!!"); |
| | | // } |
| | | return kopenApiService.sendOutDispatch(params, "update"); |
| | | } |
| | | |
| | | |
| | |
| | | */ |
| | | @ApiOperation("备货单下发") |
| | | @PostMapping("/getOutDetails") |
| | | public XSR getOutDetails(@RequestBody StockUpOrderParams params) { |
| | | public XSR getOutDetails(@RequestBody List<StockUpOrderParams> params) { |
| | | if (Objects.isNull(params)) { |
| | | return XSR.error("参数不能为空!!"); |
| | | } |
| | | if (Objects.isNull(params.getDetails()) || params.getDetails().isEmpty()) { |
| | | return XSR.error("上报订单列表不能为空!!"); |
| | | } |
| | | return kopenApiService.getOutDetails(params); |
| | | } |