whyclxw
2025-05-28 e16302f9d475c7cc4dd18c5abf1a23cb5502e362
src/main/java/com/whyc/service/A059StationInfService.java
@@ -27,12 +27,20 @@
        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();