| | |
| | | import com.vincent.rsf.openApi.entity.dto.CommonResponse; |
| | | import com.vincent.rsf.openApi.entity.params.ExMsgCallbackParams; |
| | | import com.vincent.rsf.openApi.entity.params.LocSiteParams; |
| | | import com.vincent.rsf.openApi.entity.params.LocationAllocateParams; |
| | | import com.vincent.rsf.openApi.entity.params.RcsPubTaskParams; |
| | | import com.vincent.rsf.openApi.entity.params.SyncRcsLocsParam; |
| | | import com.vincent.rsf.openApi.entity.params.TaskReportParams; |
| | |
| | | return wmsRcsService.reportTask(params); |
| | | } |
| | | |
| | | /** |
| | | * @author Ryan |
| | | * @date 2026/2/6 |
| | | * @description: 申请入库任务 |
| | | * @version 1.0 |
| | | */ |
| | | @ApiOperation("申请入库任务") |
| | | @PostMapping("/api/open/location/allocate") |
| | | public R allocateLocation(@RequestBody LocationAllocateParams params) { |
| | | log.info("申请入库任务,请求参数:{}", params); |
| | | if (Objects.isNull(params)) { |
| | | return R.error("参数不能为空!!"); |
| | | } |
| | | if (Objects.isNull(params.getBarcode()) || params.getBarcode().isEmpty()) { |
| | | return R.error("料箱码不能为空!!"); |
| | | } |
| | | if (Objects.isNull(params.getStaNo()) || params.getStaNo().isEmpty()) { |
| | | return R.error("入库站点不能为空!!"); |
| | | } |
| | | if (Objects.isNull(params.getType())) { |
| | | params.setType(18); |
| | | } |
| | | return wmsRcsService.allocateLocation(params); |
| | | } |
| | | |
| | | } |