首页接口更新(/fg/battMapInformation/findStationState)
| | |
| | | import com.whyc.pojo.BattMapInformation; |
| | | import com.whyc.pojo.BattalarmData; |
| | | import com.whyc.pojo.WorkflowAlarm; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | |
| | | |
| | | List<BattalarmData> getRealAlarm(Date yesterday,int uId,int[] alarmParams); |
| | | |
| | | List<BattMapInformation> findAllStation(); |
| | | List<BattMapInformation> findAllStation(@Param("alarmParams") int[] alarmParams); |
| | | } |
| | |
| | | |
| | | @Resource |
| | | private BattMapInformationMapper mapper; |
| | | |
| | | @Resource |
| | | private BattdischargePlanMapper battdischargePlanMapper; |
| | | |
| | | @Resource |
| | |
| | | } |
| | | public List<BattMapInformation> findAllStation(){ |
| | | int[] alarmParams = {AlarmDaoFactory.Alarm_CapAlarm,AlarmDaoFactory.Alarm_CapChange,AlarmDaoFactory.Alarm_res_Conn,AlarmDaoFactory.ALM_TYPE_DisChargeMonVol_ID}; |
| | | List<BattMapInformation> list = mapper.findAllStation(); |
| | | List<BattMapInformation> list = mapper.findAllStation(alarmParams); |
| | | return list; |
| | | } |
| | | |
| | |
| | | select distinct StationId,StationName from db_alarm.tb_battalarm_data data,db_battinf.tb_battinf binf |
| | | where data.BattGroupId=binf.BattGroupId |
| | | and alm_cleared_type=0 |
| | | and alm_id |
| | | and alm_id not in |
| | | <foreach collection="alarmParams" open="(" separator="," close=")" item="alarm"> |
| | | #{alarm} |
| | | </foreach> |