From c98d437554627a5f8a4cc85d2a8d452b0f81bd5f Mon Sep 17 00:00:00 2001 From: pang.jiabao <pang_jiabao@163.com> Date: 星期五, 20 十二月 2024 10:27:39 +0800 Subject: [PATCH] 可维护站点出入状态 --- src/main/java/com/zy/common/utils/OutStockInterceptUtil.java | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/zy/common/utils/OutStockInterceptUtil.java b/src/main/java/com/zy/common/utils/OutStockInterceptUtil.java index 0a57a2d..e28bbf7 100644 --- a/src/main/java/com/zy/common/utils/OutStockInterceptUtil.java +++ b/src/main/java/com/zy/common/utils/OutStockInterceptUtil.java @@ -25,9 +25,10 @@ public static final Map<Integer,Boolean> inSiteMap = new HashMap<Integer,Boolean>(); static { - inSiteMap.put(1040, true); - inSiteMap.put(2010, true);inSiteMap.put(2000, true); - inSiteMap.put(3010, true); + inSiteMap.put(1040, true);inSiteMap.put(1042, true); + inSiteMap.put(2010, true);inSiteMap.put(2012, true); + inSiteMap.put(2000, true);inSiteMap.put(2002, true); + inSiteMap.put(3010, true);inSiteMap.put(3012, true); } /** @@ -48,9 +49,13 @@ Wrapper<WrkMast> wrapper = new EntityWrapper<WrkMast>().in("io_type", 1, 10, 53, 57); switch (site) { case 1040: wrapper.in("sta_no","1043","1044");break; + case 1042: wrapper.in("sta_no","1043","1044");break; case 2010: wrapper.in("sta_no","2013","2014"); break; + case 2012: wrapper.in("sta_no","2013","2014"); break; case 2000: wrapper.in("sta_no","2003","2004");break; + case 2002: wrapper.in("sta_no","2003","2004");break; case 3010: wrapper.in("sta_no","3013","3014");break; + case 3012: wrapper.in("sta_no","3013","3014");break; default: } int count = wrkMastMapper.selectCount(wrapper); -- Gitblit v1.9.1