| | |
| | | .eq("station_code", stationCode) |
| | | .like("dev_no", "0" + i + "@"); |
| | | |
| | | if("CS-305".equals(stationCode) || "CS-306".equals(stationCode) || "CS-307".equals(stationCode)){ |
| | | wrapper.orderBy("dev_no",false); |
| | | List<String> list = this.selectCacheShelvesStationCodeByFloor(3); |
| | | if(list.contains(stationCode)){ |
| | | if(Cools.eq(stationCode,"CS-305") || Cools.eq(stationCode,"CS-306") || Cools.eq(stationCode,"CS-307")){ |
| | | wrapper.orderBy("dev_no",false); |
| | | } |
| | | } |
| | | |
| | | List<AgvBasDevp> agvBasDevpList = this.selectList(wrapper); |
| | |
| | | return agvBasDevpDto; |
| | | } |
| | | |
| | | AgvWrkMast agvWrkMast = agvWrkMastService.selectOne(new EntityWrapper<AgvWrkMast>() |
| | | List<AgvWrkMast> agvWrkMasts = agvWrkMastService.selectList(new EntityWrapper<AgvWrkMast>() |
| | | .eq("loc_no", agvBasDevpDto.getDevNo()) |
| | | .or().eq("source_loc_no",agvBasDevpDto.getDevNo())); |
| | | |
| | | AgvWrkMast agvWrkMast = null; |
| | | for (AgvWrkMast wrkMast : agvWrkMasts){ |
| | | if(Cools.isEmpty(agvWrkMast)){ |
| | | agvWrkMast = wrkMast; |
| | | }else { |
| | | if(agvWrkMast.getWrkSts() < wrkMast.getWrkSts()){ |
| | | agvWrkMast = wrkMast; |
| | | } |
| | | } |
| | | } |
| | | |
| | | agvBasDevpDto.setAgvWrkMast(agvWrkMast); |
| | | |
| | |
| | | return this.selectList(new EntityWrapper<AgvBasDevp>().eq("cache_shelves","N")); |
| | | } |
| | | |
| | | @Override |
| | | public List<String> selectCacheShelvesStationCodeByFloor(int floor) { |
| | | //Object o = this.selectList(new EntityWrapper<AgvBasDevp>().setSqlSelect("station_code").eq("floor",floor).eq("cache_shelves","Y").groupBy("station_code")); |
| | | return this.baseMapper.selectCacheShelvesStationCodeByFloor(floor); |
| | | } |
| | | |
| | | public List<Map<String,Object>> selectDevNoAndNumBystationCode(String stationCode){ |
| | | return this.baseMapper.selectDevNoAndNumBystationCode(stationCode); |
| | | } |
| | | |
| | | @Override |
| | | public List<String> selectAllStationCode() { |
| | | return this.baseMapper.selectAllStationCode(); |
| | | } |
| | | |
| | | } |