| | |
| | | return this.brand; |
| | | } |
| | | |
| | | public int getBrandArmType$(){ |
| | | BasBoxTypeService basBoxTypeService = SpringUtils.getBean(BasBoxTypeService.class); |
| | | List<BasBoxType> basBoxTypes = basBoxTypeService.selectList(new EntityWrapper<BasBoxType>().eq("box_type", this.brand).orderBy("id", true)); |
| | | for (BasBoxType basBoxType:basBoxTypes){ |
| | | return basBoxType.getArmType(); |
| | | } |
| | | return 999; |
| | | } |
| | | |
| | | } |
| | |
| | | return this.brand; |
| | | } |
| | | |
| | | public int getBrandArmType$(){ |
| | | BasBoxTypeService basBoxTypeService = SpringUtils.getBean(BasBoxTypeService.class); |
| | | List<BasBoxType> basBoxTypes = basBoxTypeService.selectList(new EntityWrapper<BasBoxType>().eq("box_type", this.brand).orderBy("id", true)); |
| | | for (BasBoxType basBoxType:basBoxTypes){ |
| | | return basBoxType.getArmType(); |
| | | } |
| | | return 999; |
| | | } |
| | | |
| | | } |
| | |
| | | return this.brand; |
| | | } |
| | | |
| | | public int getBrandArmType$(){ |
| | | BasBoxTypeService basBoxTypeService = SpringUtils.getBean(BasBoxTypeService.class); |
| | | List<BasBoxType> basBoxTypes = basBoxTypeService.selectList(new EntityWrapper<BasBoxType>().eq("box_type", this.brand).orderBy("id", true)); |
| | | for (BasBoxType basBoxType:basBoxTypes){ |
| | | return basBoxType.getArmType(); |
| | | } |
| | | return 999; |
| | | } |
| | | |
| | | } |
| | |
| | | return this.brand; |
| | | } |
| | | |
| | | public int getBrandArmType$(){ |
| | | BasBoxTypeService basBoxTypeService = SpringUtils.getBean(BasBoxTypeService.class); |
| | | List<BasBoxType> basBoxTypes = basBoxTypeService.selectList(new EntityWrapper<BasBoxType>().eq("box_type", this.brand).orderBy("id", true)); |
| | | for (BasBoxType basBoxType:basBoxTypes){ |
| | | return basBoxType.getArmType(); |
| | | } |
| | | return 999; |
| | | } |
| | | |
| | | public void sync(Object source) { |
| | | Synchro.Copy(source, this); |
| | | } |
| | |
| | | return this.brand; |
| | | } |
| | | |
| | | public int getBrandArmType$(){ |
| | | BasBoxTypeService basBoxTypeService = SpringUtils.getBean(BasBoxTypeService.class); |
| | | List<BasBoxType> basBoxTypes = basBoxTypeService.selectList(new EntityWrapper<BasBoxType>().eq("box_type", this.brand).orderBy("id", true)); |
| | | for (BasBoxType basBoxType:basBoxTypes){ |
| | | return basBoxType.getArmType(); |
| | | } |
| | | return 999; |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | return this.brand; |
| | | } |
| | | |
| | | public int getBrandArmType$(){ |
| | | BasBoxTypeService basBoxTypeService = SpringUtils.getBean(BasBoxTypeService.class); |
| | | List<BasBoxType> basBoxTypes = basBoxTypeService.selectList(new EntityWrapper<BasBoxType>().eq("box_type", this.brand).orderBy("id", true)); |
| | | for (BasBoxType basBoxType:basBoxTypes){ |
| | | return basBoxType.getArmType(); |
| | | } |
| | | return 999; |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | }}; |
| | | |
| | | public static final List<Integer> STA_WORK_CU_CAR_TWO = new ArrayList<Integer>() {{ |
| | | add(120);add(121); |
| | | add(1901); |
| | | }}; |
| | | public static final List<Integer> STA_WORK_CU_CAR_THREE = new ArrayList<Integer>() {{ |
| | | add(120); |
| | |
| | | if(Cools.isEmpty(wrkMast)){ |
| | | continue; |
| | | } |
| | | if (wrkMast.getStaNo()==1901){ |
| | | boolean sign1901 = false; |
| | | List<WrkDetl> wrkDetlList1901 = wrkDetlService.selectByWrkNo(wrkMast.getWrkNo()); |
| | | for (WrkDetl wrkDetl : wrkDetlList1901){ |
| | | if (wrkDetl.getBrandArmType$()==999){ |
| | | sign1901 = true; |
| | | break; |
| | | } |
| | | } |
| | | if (sign1901){ |
| | | continue; |
| | | } |
| | | } |
| | | if (wrkMast.getIoType()!=101 && wrkMast.getIoType()!=103){ |
| | | continue; |
| | | } |
| | |
| | | continue; |
| | | } |
| | | Integer wrkMastStaNo = wrkMast.getStaNo(); |
| | | if (wrkMastStaNo<118 || wrkMastStaNo>121){ |
| | | if (wrkMastStaNo==1901){ |
| | | wrkMastStaNo = 122; |
| | | } |
| | | if ((wrkMastStaNo<118 || wrkMastStaNo>121) && wrkMastStaNo!=122){ |
| | | continue; |
| | | } |
| | | String origin = null; |
| | |
| | | } |
| | | } |
| | | } |
| | | if (staNoOther==1901){ |
| | | staNoOther = 122; |
| | | } |
| | | |
| | | int countOther = wrkMastStaService.selectCount(new EntityWrapper<WrkMastSta>().eq("sta_start", staNoOther).or().eq("sta_end", staNoOther)); |
| | | if (countOther!=0){ |
| | |
| | | if (!basDevpOther.getAutoing().equals("Y") || basDevpOther.getWrkNo()!=0 || basDevpOther.getLoading().equals("Y") || basDevpOther.getReportSign()!=0) { |
| | | continue; |
| | | } |
| | | if (staNoOther==122){ |
| | | staNoOther = 1901; |
| | | } |
| | | wrkMast.setStaNo(staNoOther); |
| | | wrkMastService.updateById(wrkMast); |
| | | log.info("工作号"+wrkMast.getWrkNo()+"修改目标站为:"+staNoOther+";原目标站为:"+wrkMastStaNo); |
| | |
| | | }}; |
| | | |
| | | public static final List<Integer> STA_WORK_CU_CAR = new ArrayList<Integer>() {{ |
| | | add(118); |
| | | add(118);add(1901); |
| | | }}; |
| | | |
| | | public static final List<Integer> STA_WORK_CU_CAR_TWO = new ArrayList<Integer>() {{ |
| | | |
| | | add(1901); |
| | | }}; |
| | | public static final List<Integer> STA_WORK_CU_CAR_THREE = new ArrayList<Integer>() {{ |
| | | add(118); |
| | |
| | | if(Cools.isEmpty(wrkMast)){ |
| | | continue; |
| | | } |
| | | if (wrkMast.getStaNo()==1901){ |
| | | boolean sign1901 = false; |
| | | List<WrkDetl> wrkDetlList1901 = wrkDetlService.selectByWrkNo(wrkMast.getWrkNo()); |
| | | for (WrkDetl wrkDetl : wrkDetlList1901){ |
| | | if (wrkDetl.getBrandArmType$()==999){ |
| | | sign1901 = true; |
| | | break; |
| | | } |
| | | } |
| | | if (sign1901){ |
| | | continue; |
| | | } |
| | | } |
| | | if (wrkMast.getIoType()!=101 && wrkMast.getIoType()!=103){ |
| | | continue; |
| | | } |
| | |
| | | continue; |
| | | } |
| | | Integer wrkMastStaNo = wrkMast.getStaNo(); |
| | | if (wrkMastStaNo<118 || wrkMastStaNo>121){ |
| | | if (wrkMastStaNo==1901){ |
| | | wrkMastStaNo = 122; |
| | | } |
| | | if ((wrkMastStaNo<118 || wrkMastStaNo>121) && wrkMastStaNo!=122){ |
| | | continue; |
| | | } |
| | | String origin = null; |
| | |
| | | } |
| | | } |
| | | } |
| | | if (staNoOther==1901){ |
| | | staNoOther = 122; |
| | | } |
| | | |
| | | int countOther = wrkMastStaService.selectCount(new EntityWrapper<WrkMastSta>().eq("sta_start", staNoOther).or().eq("sta_end", staNoOther)); |
| | | if (countOther!=0){ |
| | |
| | | if (!basDevpOther.getAutoing().equals("Y") || basDevpOther.getWrkNo()!=0 || basDevpOther.getLoading().equals("Y") || basDevpOther.getReportSign()!=0) { |
| | | continue; |
| | | } |
| | | if (staNoOther==122){ |
| | | staNoOther = 1901; |
| | | } |
| | | wrkMast.setStaNo(staNoOther); |
| | | wrkMastService.updateById(wrkMast); |
| | | log.info("工作号"+wrkMast.getWrkNo()+"修改目标站为:"+staNoOther+";原目标站为:"+wrkMastStaNo); |
| | |
| | | // add(116);add(117); |
| | | |
| | | public static final List<Integer> STA_WORK_CU_CAR = new ArrayList<Integer>() {{ |
| | | add(118);add(120);add(121); |
| | | add(118);add(120);add(121);add(1901); |
| | | }}; |
| | | |
| | | public static final List<Integer> STA_WORK_CU_CAR_TWO = new ArrayList<Integer>() {{ |
| | | add(120);add(121); |
| | | add(1901); |
| | | }}; |
| | | public static final List<Integer> STA_WORK_CU_CAR_THREE = new ArrayList<Integer>() {{ |
| | | add(118);add(120); |
| | |
| | | if(Cools.isEmpty(wrkMast)){ |
| | | continue; |
| | | } |
| | | if (wrkMast.getStaNo()==1901){ |
| | | boolean sign1901 = false; |
| | | List<WrkDetl> wrkDetlList1901 = wrkDetlService.selectByWrkNo(wrkMast.getWrkNo()); |
| | | for (WrkDetl wrkDetl : wrkDetlList1901){ |
| | | if (wrkDetl.getBrandArmType$()==999){ |
| | | sign1901 = true; |
| | | break; |
| | | } |
| | | } |
| | | if (sign1901){ |
| | | continue; |
| | | } |
| | | } |
| | | if (wrkMast.getIoType()!=101 && wrkMast.getIoType()!=103){ |
| | | continue; |
| | | } |
| | |
| | | continue; |
| | | } |
| | | Integer wrkMastStaNo = wrkMast.getStaNo(); |
| | | if (wrkMastStaNo<118 || wrkMastStaNo>121){ |
| | | if (wrkMastStaNo==1901){ |
| | | wrkMastStaNo = 122; |
| | | } |
| | | if ((wrkMastStaNo<118 || wrkMastStaNo>121) && wrkMastStaNo!=122){ |
| | | continue; |
| | | } |
| | | String origin = null; |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | if (staNoOther==1901){ |
| | | staNoOther = 122; |
| | | } |
| | | int countOther = wrkMastStaService.selectCount(new EntityWrapper<WrkMastSta>().eq("sta_start", staNoOther).or().eq("sta_end", staNoOther)); |
| | | if (countOther!=0){ |
| | | continue; |
| | |
| | | continue; |
| | | } |
| | | } |
| | | if (staNoOther==122){ |
| | | staNoOther = 1901; |
| | | } |
| | | wrkMast.setStaNo(staNoOther); |
| | | wrkMastService.updateById(wrkMast); |
| | | log.info("工作号"+wrkMast.getWrkNo()+"修改目标站为:"+staNoOther+";原目标站为:"+wrkMastStaNo); |