From 3f0537d8c82eec18fc5e3adc52118efc5e474b77 Mon Sep 17 00:00:00 2001
From: Junjie <fallin.jie@qq.com>
Date: 星期三, 23 四月 2025 13:23:25 +0800
Subject: [PATCH] #
---
src/main/resources/docs/四向车货叉式提升机WCS接口V1.3.docx | 0
src/main/java/com/zy/asrs/controller/OpenController.java | 49 ++++++++++++++++++++++--
src/main/java/com/zy/asrs/domain/param/QueryTaskParam.java | 14 +++++++
3 files changed, 59 insertions(+), 4 deletions(-)
diff --git a/src/main/java/com/zy/asrs/controller/OpenController.java b/src/main/java/com/zy/asrs/controller/OpenController.java
index fed6c93..de31363 100644
--- a/src/main/java/com/zy/asrs/controller/OpenController.java
+++ b/src/main/java/com/zy/asrs/controller/OpenController.java
@@ -8,14 +8,17 @@
import com.zy.asrs.domain.param.*;
import com.zy.asrs.entity.ApiLog;
import com.zy.asrs.entity.LocMast;
+import com.zy.asrs.entity.WrkMast;
import com.zy.asrs.service.ApiLogService;
import com.zy.asrs.service.LocMastService;
+import com.zy.asrs.service.WrkMastService;
import com.zy.asrs.utils.NotifyUtils;
import com.zy.common.annotations.OpenApiLog;
import com.zy.common.service.CommonService;
import com.zy.core.cache.SlaveConnection;
import com.zy.core.dispatcher.ShuttleDispatchUtils;
import com.zy.core.enums.SlaveType;
+import com.zy.core.enums.WrkIoType;
import com.zy.core.model.ForkLiftSlave;
import com.zy.core.model.ShuttleSlave;
import com.zy.core.model.protocol.ForkLiftProtocol;
@@ -49,6 +52,8 @@
private ApiLogService apiLogService;
@Autowired
private LocMastService locMastService;
+ @Autowired
+ private WrkMastService wrkMastService;
@PostMapping("/createMoveTask")
@OpenApiLog(memo = "灏忚溅绉诲姩浠诲姟")
@@ -337,8 +342,8 @@
apiLogService.insert(new ApiLog(
null
- , "鑾峰彇鎸囧畾搴撲綅淇℃伅"
- , "/getLocInformation"
+ , "鑾峰彇鍏ㄩ儴搴撲綅淇℃伅"
+ , "/getAllLocInformation"
, null
, null
, null
@@ -362,8 +367,8 @@
apiLogService.insert(new ApiLog(
null
- , "鑾峰彇鎸囧畾搴撲綅淇℃伅"
- , "/getLocInformation"
+ , "灏忚溅闆嗗悎"
+ , "/shuttleGather"
, null
, null
, null
@@ -380,6 +385,42 @@
return R.ok().add(shuttleGather);
}
+ @PostMapping("/queryTask")
+ @OpenApiLog(memo = "鏌ヨ浠诲姟")
+ public R queryTask(@RequestBody QueryTaskParam param) {
+ EntityWrapper<WrkMast> wrapper = new EntityWrapper<>();
+ if(param.getTaskNo() != null) {
+ wrapper.eq("wms_wrk_no", param.getTaskNo());
+ }
+
+ if(param.getTaskType() != null) {
+ WrkIoType ioType = WrkIoType.get(param.getTaskType());
+ if(ioType == null) {
+ return R.error("浠诲姟绫诲瀷涓嶅瓨鍦�");
+ }
+ wrapper.eq("io_type", ioType.id);
+ }
+ List<WrkMast> wrkMasts = wrkMastService.selectList(wrapper);
+ apiLogService.insert(new ApiLog(
+ null
+ , "鏌ヨ浠诲姟"
+ , "/queryTask"
+ , null
+ , null
+ , null
+ , null
+ , JSON.toJSONString(wrkMasts)
+ , null
+ , null
+ , 1
+ , new Date()
+ , null
+ , null
+ ));
+
+ return R.ok().add(wrkMasts);
+ }
+
@GetMapping("/test")
public R test() {
notifyUtils.notify("task", 1, "9999", "W9999", NotifyMsgType.SHUTTLE_MOVING, "data");
diff --git a/src/main/java/com/zy/asrs/domain/param/QueryTaskParam.java b/src/main/java/com/zy/asrs/domain/param/QueryTaskParam.java
new file mode 100644
index 0000000..308f710
--- /dev/null
+++ b/src/main/java/com/zy/asrs/domain/param/QueryTaskParam.java
@@ -0,0 +1,14 @@
+package com.zy.asrs.domain.param;
+
+import lombok.Data;
+
+@Data
+public class QueryTaskParam {
+
+ //浠诲姟绫诲瀷
+ private Integer taskType;
+
+ //浠诲姟鍙�
+ private String taskNo;
+
+}
diff --git "a/src/main/resources/docs/\345\233\233\345\220\221\350\275\246\350\264\247\345\217\211\345\274\217\346\217\220\345\215\207\346\234\272WCS\346\216\245\345\217\243V1.3.docx" "b/src/main/resources/docs/\345\233\233\345\220\221\350\275\246\350\264\247\345\217\211\345\274\217\346\217\220\345\215\207\346\234\272WCS\346\216\245\345\217\243V1.3.docx"
new file mode 100644
index 0000000..3b9a4bf
--- /dev/null
+++ "b/src/main/resources/docs/\345\233\233\345\220\221\350\275\246\350\264\247\345\217\211\345\274\217\346\217\220\345\215\207\346\234\272WCS\346\216\245\345\217\243V1.3.docx"
Binary files differ
--
Gitblit v1.9.1