| | |
| | | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
| | | import com.github.pagehelper.PageHelper; |
| | | import com.github.pagehelper.PageInfo; |
| | | import com.whyc.constant.Capperformance; |
| | | import com.whyc.constant.PowerAlarmEnum; |
| | | import com.whyc.constant.BattCapperformanceEnum; |
| | | import com.whyc.dto.BattDto; |
| | | import com.whyc.dto.InfoDto; |
| | | import com.whyc.dto.Param.ParamAlmDto; |
| | |
| | | } |
| | | if(sinf.getLatitude()!=null){ |
| | | wrapper1.set("latitude",sinf.getLatitude()); |
| | | } |
| | | if(sinf.getNodeStation()!=null){ |
| | | wrapper1.set("node_station",sinf.getNodeStation()); |
| | | } |
| | | wrapper1.eq("station_id",sinf.getStationId()); |
| | | |
| | |
| | | } |
| | | //获取容量性能(下拉) |
| | | public Response getCapperformance() { |
| | | Map<Integer,String> map= Capperformance.getOpInfo(); |
| | | Map<Integer,String> map= BattCapperformanceEnum.getOpInfo(); |
| | | return new Response().setII(1,true,map,"获取容量性能(下拉)"); |
| | | } |
| | | //蓄电池组对比分析界面16 |
| | |
| | | return mapper.getListByUserId(userId); |
| | | } |
| | | |
| | | public List<BattInf> getListByCondition(Integer userId, BattInf battInf) { |
| | | return mapper.getListByCondition(userId, battInf); |
| | | } |
| | | |
| | | //获取站点下的电池组(下拉) |
| | | public Response getBattByUid(Integer uid, String provice, String city, String country, String stationName) { |
| | | List<BattInf> list=mapper.getBattByUid(uid,provice,city,country,stationName); |
| | | return new Response().setII(1,list.size()>0,list,"获取站点下的电池组(下拉)"); |
| | | } |
| | | //根据查询条件获取电池组集合 |
| | | public List<Integer> getBattgroupIdList(ParamAlmDto dto) { |
| | | return mapper.getBattgroupIdList(dto); |
| | | //根据查询条件获取电池组 |
| | | public BattInf getBattgroupIdInf(Integer battgroupId) { |
| | | return mapper.getBattgroupIdInf(battgroupId); |
| | | } |
| | | //查询电源下所有的电池组id |
| | | public List<Integer> getBattgroupIdList(Integer powerId) { |
| | | return mapper.getBattgroupIdList(powerId); |
| | | } |
| | | } |