| | |
| | | PageHelper.startPage(pageNum, pageSize); |
| | | List<A059StationInfDTO> list = new ArrayList<>(); |
| | | QueryWrapper<A059StationInf> queryWrapper = new QueryWrapper<>(); |
| | | queryWrapper.eq("station_province", province); |
| | | queryWrapper.eq("station_city", city); |
| | | queryWrapper.eq("station_county", county); |
| | | queryWrapper.eq("station_type", stationType); |
| | | if (province!=null) { |
| | | queryWrapper.eq("station_province", province); |
| | | } |
| | | if (city!=null) { |
| | | queryWrapper.eq("station_city", city); |
| | | } |
| | | if (county!=null) { |
| | | queryWrapper.eq("station_county", county); |
| | | } |
| | | if (stationType != -1) { |
| | | queryWrapper.eq("station_type", stationType); |
| | | } |
| | | queryWrapper.orderByDesc("last_update_time"); |
| | | List<A059StationInf> stationInfs = mapper.selectList(null); |
| | | List<A059StationInf> stationInfs = mapper.selectList(queryWrapper); |
| | | QueryWrapper<Battinf> battinfQueryWrapper = new QueryWrapper<>(); |
| | | for (A059StationInf stationInf : stationInfs) { |
| | | A059StationInfDTO dto = new A059StationInfDTO(); |