| | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.core.common.Cools; |
| | | import com.core.common.DateUtils; |
| | | import com.core.common.SpringUtils; |
| | | import com.core.exception.CoolException; |
| | | import com.zy.asrs.entity.BasDevp; |
| | | import com.zy.asrs.entity.BasRgvMap; |
| | | import com.zy.asrs.service.BasDevpService; |
| | | import com.zy.asrs.service.BasRgvMapService; |
| | | import com.zy.common.utils.News; |
| | | import com.zy.core.DevpThread; |
| | | import com.zy.core.cache.MessageQueue; |
| | |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | import java.text.MessageFormat; |
| | | import java.util.*; |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.concurrent.ConcurrentHashMap; |
| | | |
| | | /** |
| | |
| | | // |
| | | // }}; |
| | | public static final ArrayList<Integer> staNos1 = new ArrayList<Integer>() {{ |
| | | add(121);add(122);add(123);add(124);add(125); |
| | | add(126); |
| | | add(221);add(222);add(223);add(224);add(225); |
| | | add(226);add(227);add(228);add(229);add(230); |
| | | add(231); |
| | | add(411);add(412);add(413);add(414); |
| | | add(101);add(102);add(103); |
| | | add(104);add(105); |
| | | }}; |
| | | |
| | | public static final ArrayList<Integer> staNos2 = new ArrayList<Integer>() {{ |
| | | /*public static final ArrayList<Integer> staNos2 = new ArrayList<Integer>() {{ |
| | | add(101);add(102);add(103); |
| | | add(104);add(105);add(106);add(107); |
| | | add(108);add(109); |
| | |
| | | add(208);add(209);add(210);add(211); |
| | | |
| | | add(401);add(402);add(403);add(404); |
| | | }}; |
| | | }};*/ |
| | | |
| | | public static final ArrayList<Integer> BarcodeList1 = new ArrayList<Integer>() {{ |
| | | add(1); add(2);add(3);add(4);add(5); |
| | |
| | | add(6);add(7);add(8);add(9); |
| | | add(10); add(11); add(12); add(13); |
| | | }}; |
| | | public static final ArrayList<Integer> staNosErrList2 = new ArrayList<Integer>() {{ |
| | | /*public static final ArrayList<Integer> staNosErrList2 = new ArrayList<Integer>() {{ |
| | | add(102); add(105);add(107);add(109); |
| | | add(203);add(205);add(208);add(211); |
| | | }}; |
| | | }};*/ |
| | | |
| | | public static final ArrayList<Integer> staNosErrList1 = new ArrayList<Integer>() {{ |
| | | add(123); |
| | | add(223);add(225);add(228);add(231); |
| | | add(101); |
| | | add(102);add(103);add(104);add(105); |
| | | }}; |
| | | |
| | | public static final ArrayList<Integer> staNoWeight1 = new ArrayList<Integer>() {{ |
| | |
| | | switch (slave.getId()) { |
| | | case 1: |
| | | return staNosErrList1; |
| | | case 2: |
| | | return staNosErrList2; |
| | | /*case 2: |
| | | return staNosErrList2;*/ |
| | | default: |
| | | throw new CoolException("服务器异常"); |
| | | } |
| | |
| | | switch (slave.getId()) { |
| | | case 1: |
| | | return staNos1; |
| | | case 2: |
| | | return staNos2; |
| | | /*case 2: |
| | | return staNos2;*/ |
| | | default: |
| | | throw new CoolException("服务器异常"); |
| | | } |