From f907e31b2d4423daba7b4a09e64a38455ec40914 Mon Sep 17 00:00:00 2001 From: skyouc Date: 星期四, 28 八月 2025 19:21:44 +0800 Subject: [PATCH] 异常信息上报接口优化 --- rsf-server/src/main/java/com/vincent/rsf/server/api/controller/WcsController.java | 46 +++++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 43 insertions(+), 3 deletions(-) diff --git a/rsf-server/src/main/java/com/vincent/rsf/server/api/controller/WcsController.java b/rsf-server/src/main/java/com/vincent/rsf/server/api/controller/WcsController.java index 48df947..f1309c5 100644 --- a/rsf-server/src/main/java/com/vincent/rsf/server/api/controller/WcsController.java +++ b/rsf-server/src/main/java/com/vincent/rsf/server/api/controller/WcsController.java @@ -3,7 +3,8 @@ import com.vincent.rsf.framework.common.Cools; import com.vincent.rsf.framework.common.R; import com.vincent.rsf.server.api.entity.dto.InTaskMsgDto; -import com.vincent.rsf.server.api.controller.params.TaskInParam; +import com.vincent.rsf.server.api.controller.erp.params.TaskInParam; +import com.vincent.rsf.server.common.annotation.OperationLog; import com.vincent.rsf.server.manager.enums.TaskType; import com.vincent.rsf.server.api.service.WcsService; import com.vincent.rsf.server.system.controller.BaseController; @@ -23,6 +24,7 @@ @Autowired private WcsService wcsService; + @ApiOperation(value = "wcs鐢熸垚鍏ュ簱浠诲姟鎺ュ彛") @PostMapping("/create/in/task") public R createInTask(@RequestBody TaskInParam param) { @@ -40,8 +42,6 @@ } InTaskMsgDto msgDto = wcsService.createInTask(param); return R.ok(msgDto); - - } @ApiOperation(value = "agv鍙栬揣瀹屾垚鎺ュ彛") @@ -63,7 +63,47 @@ return R.ok(); + } + /** + * 鎺ユ敹WCS璋冨害锛屽洖浼犳墽琛岀姸鎬� + * TODO 1. 鎷f枡鍑哄簱锛屽啀鍏ュ簱鎵ц锛屼慨鏀圭姸鎬佷负199.浠诲姟瀹屾垚 骞惰褰曞叆搴撶珯鐐癸紙婧愮珯鐐癸級锛屾坊鍔犱换鍔″彿鍙傛暟 + * @param param + * @return + */ + @ApiOperation("鎺ユ敹WCS璋冨害锛屽洖浼犳墽琛岀姸鎬�") + @PostMapping("/exce/status") + public R receiveTask(@RequestBody TaskInParam param) { + if (Cools.isEmpty(param)) { + return R.error("鍙傛暟涓嶈兘涓虹┖锛侊紒"); + } + return R.ok(); + } + + /** + * @author Ryan + * @date 2025/8/27 + * @description: RCS搴撲綅淇℃伅鍚屾 + * @version 1.0 + */ + @ApiOperation("RCS搴撲綅淇℃伅鍚屾") + @OperationLog("RCS搴撲綅淇℃伅鍚屾") + @PostMapping("/sync/locs") + public R syncLocsToWms() { + return wcsService.syncLocsToWms(); + } + + /** + * @author Ryan + * @date 2025/8/28 + * @description: RCS涓婃姤寮傚父淇℃伅 + * @version 1.0 + */ + @ApiOperation("RCS涓婃姤寮傚父鎵ц淇℃伅") + @OperationLog("RCS涓婃姤寮傚父鎵ц淇℃伅") + @PostMapping("/receive/ex/msg") + public R receiveExMsg() { + return wcsService.receiveExMsg(); } -- Gitblit v1.9.1