| | |
| | | import javax.annotation.Resource;
|
| | | import javax.servlet.http.HttpServletRequest;
|
| | |
|
| | | import com.moral.entity.alarm.AlarmConfig;
|
| | | import org.apache.commons.collections.CollectionUtils;
|
| | | import org.apache.commons.net.ftp.FTPClient;
|
| | | import org.apache.log4j.Logger;
|
| | |
| | | List<Map<String, Object>> list = (List<Map<String, Object>>) pieData.get(sensorKey);
|
| | | return new ResultBean<List<Map<String, Object>>>(list);
|
| | | }
|
| | |
|
| | | /**
|
| | | * 获取报警阀值
|
| | | * @param mpid
|
| | | * @return
|
| | | */
|
| | | @GetMapping("getalevels")
|
| | | public ResultBean<Map<String,AlarmSensorLevel>> getAlarmLevelByMonitorPointId(int mpid){
|
| | | AlarmConfig alarmConfig = alarmConfigService.queryByMonitorPointId(mpid).get();
|
| | | ResultBean<Map<String,AlarmSensorLevel>> resultBean = new ResultBean();
|
| | | resultBean.setCode(ResultBean.SUCCESS);
|
| | | resultBean.setData(alarmConfig.getValue().getAlarmLevels());
|
| | | return resultBean;
|
| | | }
|
| | | }
|