| | |
| | | if (wrkMast.getStaNoCar$()<118 || wrkMast.getStaNoCar$()>121){ |
| | | continue; |
| | | } |
| | | int count = wrkMastStaService.selectCount(new EntityWrapper<WrkMastSta>().eq("sta_start", wrkMast.getStaNoCar$()).or().eq("sta_end", wrkMast.getStaNoCar$())); |
| | | if (count!=0){ |
| | | int count1 = wrkMastStaService.selectCount(new EntityWrapper<WrkMastSta>().eq("sta_start", wrkMast.getStaNoCar$())); |
| | | int count2 = wrkMastStaService.selectCount(new EntityWrapper<WrkMastSta>().eq("sta_end", wrkMast.getStaNoCar$())); |
| | | if (count1+count2!=0){ |
| | | continue; |
| | | } |
| | | int countStart = wrkMastStaService.selectCount(new EntityWrapper<WrkMastSta>().eq("sta_start", staNo).or().eq("sta_end", staNo).or().eq("wrk_no", wrkMast.getWrkNo())); |
| | | if (countStart!=0){ |
| | | int countStart1 = wrkMastStaService.selectCount(new EntityWrapper<WrkMastSta>().eq("sta_start", staNo)); |
| | | int countStart2 = wrkMastStaService.selectCount(new EntityWrapper<WrkMastSta>().eq("sta_end", staNo)); |
| | | int countStart3 = wrkMastStaService.selectCount(new EntityWrapper<WrkMastSta>().eq("wrk_no", wrkMast.getWrkNo())); |
| | | if (countStart1+countStart2+countStart3!=0){ |
| | | continue; |
| | | } |
| | | BasDevp basDevpEnd = basDevpService.selectById(wrkMast.getStaNoCar$()); |