| | |
| | | import com.vincent.rsf.framework.common.R; |
| | | import com.vincent.rsf.framework.exception.CoolException; |
| | | import com.vincent.rsf.openApi.entity.params.RcsPubTaskParams; |
| | | import com.vincent.rsf.openApi.entity.params.SyncRcsLocsParam; |
| | | import com.vincent.rsf.openApi.service.WmsRcsService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | */ |
| | | @ApiOperation("RCS库位信息同步") |
| | | @PostMapping("/sync/locs") |
| | | public R syncLocsToWms() { |
| | | wmsRcsService.syncLocs(); |
| | | return R.ok(); |
| | | public R syncLocsToWms(@RequestBody SyncRcsLocsParam params) { |
| | | if (Objects.isNull(params)) { |
| | | return R.error("参数不能为空!!"); |
| | | } |
| | | return R.ok().add(wmsRcsService.syncLocs(params)); |
| | | } |
| | | |
| | | |