| | |
| | | //初始化1楼缓存货架站点 2排5列3层 |
| | | this.insertBatch(getCacheBasDevpList(1,2,1,5,1,3,1)); |
| | | //初始化3楼缓存货架站点 3排5列3层 |
| | | this.insertBatch(getCacheBasDevpList(5,7,1,5,1,3,3)); |
| | | this.insertBatch(getCacheBasDevpList(5,9,1,5,1,3,3)); |
| | | //初始化3楼输送线工作站点 4个站点 |
| | | this.insertBatch(getLineBasDevpList()); |
| | | |
| | |
| | | .eq("station_code", stationCode) |
| | | .like("dev_no", "0" + i + "@"); |
| | | |
| | | if("CS-305".equals(stationCode) || "CS-306".equals(stationCode) || "CS-307".equals(stationCode)){ |
| | | List<String> list = this.selectCacheShelvesStationCodeByFloor(3); |
| | | if(list.contains(stationCode)){ |
| | | wrapper.orderBy("dev_no",false); |
| | | } |
| | | |
| | |
| | | return this.selectOne(new EntityWrapper<AgvBasDevp>().eq("dev_no",devNo)); |
| | | } |
| | | |
| | | @Override |
| | | public AgvBasDevp selectEmptyDevpByStation(String stationCode) { |
| | | return this.selectOne(new EntityWrapper<AgvBasDevp>() |
| | | .eq("station_code", stationCode) |
| | | .eq("loc_sts", "O")); |
| | | } |
| | | |
| | | @Override |
| | | public List<AgvBasDevp> getBasDevpByNoCacheShelves() { |
| | | 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); |
| | | } |
| | | |
| | | } |