| | |
| | | }}; |
| | | |
| | | public static final List<Integer> STA_WORK_CU_CAR = new ArrayList<Integer>() {{ |
| | | add(118);add(119);add(120);add(121); |
| | | add(118);add(120);add(121); |
| | | }}; |
| | | |
| | | public static final List<Integer> STA_WORK_CU_CAR_TWO = new ArrayList<Integer>() {{ |
| | |
| | | add(118);add(120); |
| | | }}; |
| | | public static final List<Integer> STA_WORK_CU_CAR_FOUR = new ArrayList<Integer>() {{ |
| | | add(119);add(121); |
| | | add(121); |
| | | }}; |
| | | |
| | | public static final List<Integer> STA_WORK_RU = new ArrayList<Integer>() {{ |
| | | add(118);add(119);add(120);add(121);add(122);add(123); |
| | | add(118);add(120);add(121);add(122);add(123);add(171); |
| | | }}; |
| | | |
| | | |
| | | @Scheduled(cron = "0/3 * * * * ? ") |
| | | // @Scheduled(cron = "0/3 * * * * ? ") |
| | | private void execute(){ |
| | | for(Integer staNo : STA_WORK_CU){ |
| | | try{ |
| | |
| | | } |
| | | } |
| | | |
| | | @Scheduled(cron = "0/3 * * * * ? ") |
| | | // @Scheduled(cron = "0/3 * * * * ? ") |
| | | private void execute2(){ |
| | | try{ |
| | | for(Integer staNo : STA_WORK_CU){ |
| | |
| | | } |
| | | String origin = null; |
| | | boolean sign = false; |
| | | boolean sign101 = false; |
| | | if (wrkMast.getIoType()!=101){ |
| | | List<WrkDetl> wrkDetls = wrkDetlService.selectByWrkNo(wrkMast.getWrkNo()); |
| | | if (!Cools.isEmpty(wrkDetls) && !wrkDetls.isEmpty()){ |
| | |
| | | log.error("未查询到工作明细"); |
| | | continue; |
| | | } |
| | | }else { |
| | | sign101 = true; |
| | | } |
| | | int count = wrkMastStaService.selectCount(new EntityWrapper<WrkMastSta>().eq("sta_start", wrkMastStaNo).or().eq("sta_end", wrkMastStaNo)); |
| | | if (count!=0){ |
| | |
| | | for (Integer staNoOther : STA_WORK_CU_CAR_NOW) { |
| | | if (staNoOther.equals(wrkMastStaNo)) continue; |
| | | |
| | | if (sign){ |
| | | if (sign && !sign101){ |
| | | if (Cools.isEmpty(origin)){ |
| | | continue; |
| | | } |