| | |
| | | import com.whyc.pojo.db_param.AppParam; |
| | | import com.whyc.pojo.db_pwrdev_alarm.PwrdevAlarm; |
| | | import com.whyc.pojo.db_pwrdev_alarm.PwrdevAlarmParam; |
| | | import com.whyc.pojo.db_station.BattInf; |
| | | import com.whyc.pojo.web_site.AlarmInspection; |
| | | import com.whyc.util.ActionUtil; |
| | | import com.whyc.util.DateUtil; |
| | |
| | | for (PwrdevAlarm pwrAlm:list) { |
| | | pwrAlm.setAlmName(PowerAlarmEnum.getValue(pwrAlm.getAlmId())); |
| | | //查询电源下所有的电池组id |
| | | List<Integer> battgroupIdList = battInfService.getBattgroupIdList(pwrAlm.getPowerId()); |
| | | pwrAlm.setBattgroupIdList(battgroupIdList); |
| | | List<BattInf> binfList = battInfService.getBattgroupIdListByPowerId(pwrAlm.getPowerId()); |
| | | pwrAlm.setBinfList(binfList); |
| | | } |
| | | PageInfo pageInfo=new PageInfo(list); |
| | | return new Response().setII(1,list!=null,pageInfo,"电源告警分析"); |
| | | } |
| | | |
| | | //查看当前是否存在交流停电告警 |
| | | public Integer judge3100014(Integer powerId) { |
| | | QueryWrapper wrapper=new QueryWrapper(); |
| | | wrapper.eq("power_id",powerId); |
| | | wrapper.eq("alm_id",PowerAlarmEnum.ALARM_3100014); |
| | | wrapper.last("limit 1"); |
| | | PwrdevAlarm alm=mapper.selectOne( wrapper); |
| | | return alm!=null?1:0; |
| | | } |
| | | } |