| | |
| | | import com.whyc.mapper.DevalarmDataMapper; |
| | | import com.whyc.pojo.db_alarm.BattalarmData; |
| | | import com.whyc.pojo.db_alarm.DevalarmData; |
| | | import com.whyc.pojo.db_station.BattInf; |
| | | import com.whyc.pojo.web_site.AlarmInspection; |
| | | import com.whyc.util.ActionUtil; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | list.forEach(data->{ |
| | | data.setAlmName(DevAlarmEnum.getValue(data.getAlmId())); |
| | | //查询设备下所有的电池组id |
| | | List<Integer> battgroupIdList = battInfService.getBattgroupIdListByDevId(data.getDevId()); |
| | | data.setBattgroupIdList(battgroupIdList); |
| | | List<BattInf> binfList = battInfService.getBattgroupIdListByDevId(data.getDevId()); |
| | | data.setBinfList(binfList); |
| | | }); |
| | | PageInfo pageInfo=new PageInfo(list); |
| | | return new Response().setII(1,list!=null,pageInfo,"获取设备实时告警信息"); |