| | |
| | | public List<StationInfChange> getSinfChange(Integer stationId) { |
| | | QueryWrapper wrapper=new QueryWrapper(); |
| | | wrapper.eq("station_id",stationId); |
| | | wrapper.last("limit 0,2"); |
| | | wrapper.orderByDesc("update_time"); |
| | | List<StationInfChange> list=sinfChangeMapper.selectList(wrapper); |
| | | return list; |
| | |
| | | public List<PowerInfChange> getPinfChange(Integer powerId) { |
| | | QueryWrapper wrapper=new QueryWrapper(); |
| | | wrapper.eq("power_id",powerId); |
| | | wrapper.last("limit 0,2"); |
| | | wrapper.orderByDesc("update_time"); |
| | | List<PowerInfChange> list=pinfChangeMapper.selectList(wrapper); |
| | | return list; |
| | |
| | | public List<BattInfChange> getBinfChange(Integer battgroupId) { |
| | | QueryWrapper wrapper=new QueryWrapper(); |
| | | wrapper.eq("battgroup_id",battgroupId); |
| | | wrapper.last("limit 0,2"); |
| | | wrapper.orderByDesc("update_time"); |
| | | List<BattInfChange> list=binfChangeMapper.selectList(wrapper); |
| | | return list; |