| | |
| | | import com.vincent.rsf.framework.exception.CoolException; |
| | | 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.RcsPubTaskParams; |
| | | import com.vincent.rsf.openApi.entity.params.SyncRcsLocsParam; |
| | | import com.vincent.rsf.openApi.entity.params.TaskReportParams; |
| | | import com.vincent.rsf.openApi.service.WmsRcsService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | |
| | | import java.util.Map; |
| | | import java.util.Objects; |
| | | |
| | | @Slf4j |
| | | @RestController |
| | | @Api("RCS调度交互接口") |
| | | @RequestMapping("/rcs") |
| | |
| | | return R.ok().add(wmsRcsService.syncLocs(params)); |
| | | } |
| | | |
| | | /** |
| | | * @author Ryan |
| | | * @date 2025/11/10 |
| | | * @description: WMS 出库成功后,修改库位、站点状态 |
| | | * @version 1.0 |
| | | */ |
| | | @ApiOperation("RCS修改库位或站点状态") |
| | | @PostMapping("/modify/status") |
| | | public R modifyLocOrSite(@RequestBody LocSiteParams params) { |
| | | if (Objects.isNull(params)) { |
| | | return R.error("参数不能为空!!"); |
| | | } |
| | | return wmsRcsService.modifyLocOrSite(params); |
| | | } |
| | | |
| | | /** |
| | | * @author Ryan |
| | | * @date 2026/2/3 |
| | | * @description: RCS回调接口 |
| | | * @version 1.0 |
| | | */ |
| | | @ApiOperation("RCS回调接口") |
| | | @PostMapping("/api/open/task/report") |
| | | public CommonResponse reportTask(@RequestBody TaskReportParams params) { |
| | | log.debug("RCS回调:{}", params); |
| | | if (Objects.isNull(params)) { |
| | | throw new CoolException("参数不能为空!!"); |
| | | } |
| | | return wmsRcsService.reportTask(params); |
| | | } |
| | | |
| | | } |