| | |
| | | private BattInfService binfService; |
| | | //获取电池告警参数 |
| | | public Response getBattAlmParam(ParamAlmDto dto) { |
| | | //根据查询条件获取电池组集合 |
| | | BattInf binf=binfService.getBattgroupIdList(dto.getBattgroupId()); |
| | | //根据查询条件获取电池组 |
| | | BattInf binf=binfService.getBattgroupIdInf(dto.getBattgroupId()); |
| | | QueryWrapper wrapper=new QueryWrapper(); |
| | | wrapper.eq("battgroup_id",dto.getBattgroupId()); |
| | | if(dto.getAlmIdList()!=null){ |
| | |
| | | //PageInfo<BattAlmparam> pageInfo=new PageInfo<>(list); |
| | | return new Response().setIII(1,list!=null,list,binf,"获取电池告警参数"); |
| | | } |
| | | //获取电池告警参数(无参用于导出) |
| | | public Response getBattAlmParamToExport(Integer uid) { |
| | | //获取所有的电池组id |
| | | List<BattAlmparam> list = mapper.getBattAlmParamToExport(uid); |
| | | return new Response().setII(1,list!=null,list,"获取电池告警参数"); |
| | | } |
| | | //修改电池告警参数 |
| | | public Response setBattAlmParam(List<BattAlmparam> almparamList) { |
| | | for (BattAlmparam param:almparamList) { |