| | |
| | | import com.vincent.rsf.framework.common.R; |
| | | import com.vincent.rsf.framework.exception.CoolException; |
| | | import com.vincent.rsf.openApi.entity.dto.CommonResponse; |
| | | import com.vincent.rsf.openApi.entity.dto.SyncLocsDto; |
| | | import com.vincent.rsf.openApi.entity.params.ExMsgCallbackParams; |
| | | import com.vincent.rsf.openApi.entity.params.RcsPubTaskParams; |
| | | import com.vincent.rsf.openApi.entity.params.SyncRcsLocsParam; |
| | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.Objects; |
| | | |
| | |
| | | */ |
| | | @ApiOperation("RCS库位信息同步") |
| | | @PostMapping("/sync/locs") |
| | | public R syncLocsToWms(@RequestBody SyncRcsLocsParam params) { |
| | | public CommonResponse syncLocsToWms(@RequestBody SyncRcsLocsParam params) { |
| | | if (Objects.isNull(params)) { |
| | | return R.error("参数不能为空!!"); |
| | | throw new CoolException("参数不能为空!!"); |
| | | } |
| | | return R.ok().add(wmsRcsService.syncLocs(params)); |
| | | List<SyncLocsDto> result = wmsRcsService.syncLocs(params); |
| | | return CommonResponse.ok(result); |
| | | } |
| | | |
| | | |