| | |
| | | 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 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); |
| | | } |
| | | |
| | | } |