From 45eae7868924a369f451acd26a9168f3532a4f30 Mon Sep 17 00:00:00 2001 From: whycq <10027870+whycq@user.noreply.gitee.com> Date: 星期五, 24 五月 2024 11:02:38 +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