From 1efaa37727a8d70a6bc0b0f70532649c16bfab35 Mon Sep 17 00:00:00 2001
From: whycq <913841844@qq.com>
Date: 星期一, 27 五月 2024 11:48:49 +0800
Subject: [PATCH] #移库楼层
---
src/main/java/com/zy/common/service/AgvCommonService.java | 28 ++++++++++++++++++++++++++++
1 files changed, 28 insertions(+), 0 deletions(-)
diff --git a/src/main/java/com/zy/common/service/AgvCommonService.java b/src/main/java/com/zy/common/service/AgvCommonService.java
index f8c55c2..605d373 100644
--- a/src/main/java/com/zy/common/service/AgvCommonService.java
+++ b/src/main/java/com/zy/common/service/AgvCommonService.java
@@ -253,6 +253,24 @@
throw new CoolException("璇ユゼ灞傛病鏈夌┖鎺ラ┏浣�");
}
+ /**
+ * 妫�绱㈠簱浣嶅彿
+ * @return locNo 妫�绱㈠埌鐨勫簱浣嶅彿
+ */
+ public AgvBasDevp getDevpNo(int type, int floor, String auto) {
+ // 鐩爣搴撲綅
+ AgvBasDevp basDevp = null;
+
+ // 寮�濮嬫煡鎵惧簱浣� ==============================>>
+ basDevp = getDevpNoAuto(type,floor,auto);
+ if (basDevp != null) {
+ return basDevp;
+ }
+
+ //鎵句笉鍒板簱浣嶏紝鎶涘嚭寮傚父
+ throw new CoolException("璇ユゼ灞傛病鏈夌┖鎺ラ┏浣�");
+ }
+
//闅忔満鍙栦竴涓揣浣�
private AgvBasDevp getDevpNoRule(int type,int floor){
return agvBasDevpService.selectOne(new EntityWrapper<AgvBasDevp>()
@@ -262,4 +280,14 @@
.like("dev_no","DB"));
}
+ //闅忔満鍙栦竴涓揣浣�
+ private AgvBasDevp getDevpNoAuto(int type,int floor,String auto){
+ return agvBasDevpService.selectOne(new EntityWrapper<AgvBasDevp>()
+ .eq("loc_sts","O")
+ .eq("floor",floor)
+ .eq("loc_type1",type)
+ .eq("autoing",auto)
+ .like("dev_no","DB"));
+ }
+
}
--
Gitblit v1.9.1