| | |
| | | import com.zy.api.entity.OrderParams; |
| | | import com.zy.api.entity.PubOrderParams; |
| | | import com.zy.api.entity.ReportOrderParam; |
| | | import com.zy.api.entity.StockUpOrderParams; |
| | | import com.zy.api.entity.SyncMatParmas; |
| | | import com.zy.api.service.KopenApiService; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | } |
| | | return kopenApiService.receiveOrders(params); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 上游下发零件数据变更 |
| | |
| | | return kopenApiService.sendOutDispatch(params); |
| | | } |
| | | |
| | | |
| | | // /** |
| | | // * 备货指示派工单反馈 |
| | | // * @author Ryan |
| | | // * @date 2025/11/24 15:22 |
| | | // * @param params |
| | | // * @return com.core.common.R |
| | | // */ |
| | | // @ApiOperation("备货指示派工单反馈") |
| | | // @PostMapping("/getOutDispatchResult") |
| | | // public R getOutDispatchResult(@RequestBody ReportOrderParam params) { |
| | | // if (Objects.isNull(params)) { |
| | | // return R.error("参数不能为空!!"); |
| | | // } |
| | | // if (Objects.isNull(params.getKopen_id()) && Objects.isNull(params.getInv_no()) && Objects.isNull(params.getDispatch_no())) { |
| | | // return R.error("取消条件不能为空!!"); |
| | | // } |
| | | // return kopenApiService.getOutDispatchResult(params); |
| | | // } |
| | | |
| | | |
| | | /** |
| | | * 备货单下发 |
| | | * @author Ryan |
| | | * @date 2025/11/24 15:21 |
| | | * @param params |
| | | * @return com.core.common.R |
| | | */ |
| | | @ApiOperation("备货单下发") |
| | | @PostMapping("/getOutDetails") |
| | | public R getOutDetails(@RequestBody StockUpOrderParams params) { |
| | | if (Objects.isNull(params)) { |
| | | return R.error("参数不能为空!!"); |
| | | } |
| | | if (Objects.isNull(params.getDetails()) || params.getDetails().isEmpty()) { |
| | | return R.error("上报订单列表不能为空!!"); |
| | | } |
| | | return kopenApiService.getOutDetails(params); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | } |