| | |
| | | import com.whyc.pojo.db_param.PageParam; |
| | | import com.whyc.pojo.db_power_rt.BattStationTemp; |
| | | import com.whyc.service.BattStationTempAlarmService; |
| | | import com.whyc.service.BattStationTempHisService; |
| | | import com.whyc.service.BattStationTempService; |
| | | import com.whyc.service.PageParamService; |
| | | import com.whyc.util.HikTempUtil; |
| | |
| | | private BattStationTempService service; |
| | | |
| | | @Autowired |
| | | private BattStationTempHisService hisService; |
| | | |
| | | @Autowired |
| | | private BattStationTempAlarmService alarmService; |
| | | |
| | | @Autowired |
| | |
| | | /** |
| | | * 温度实时 |
| | | * */ |
| | | @Scheduled(fixedRate = 4000,initialDelay = 2000) |
| | | //@Scheduled(fixedRate = 4000,initialDelay = 2000) |
| | | public void startRecordAndCheck(){ |
| | | List<BattCamera> ipInfoList = HikTempUtil.cameraInfoList; |
| | | List<PageParam> tempParmList = paramService.getTempParmList(); |
| | |
| | | battStationTemp.setStationId(stationId); |
| | | |
| | | service.addOrUpdate(battStationTemp); |
| | | //温度历史-TODO |
| | | |
| | | //温度历史 - 按电池组id,月度表 |
| | | |
| | | |
| | | //温度告警判断 |
| | | //查询温度告警表,如果存在 |
| | | BattStationTempAlarm alarmInDB = alarmService.getByBattGroupId(battGroupId); |