| | |
| | | import com.moral.entity.charts.LineChartCriteria;
|
| | | import com.moral.entity.charts.TimePeriod;
|
| | | import com.moral.mapper.AlarmDailyMapper;
|
| | | import com.moral.mapper.AlarmMapper;
|
| | | import com.moral.mapper.DeviceMapper;
|
| | | import com.moral.mapper.HistoryMinutelyMapper;
|
| | | import com.moral.mapper.SensorMapper;
|
| | |
| | | @Override
|
| | | public Map<String, List> getCompareReport(Map<String, Object> parameters) throws Exception {
|
| | | Map<String, List> resultMap = new HashMap<String, List>();
|
| | | List<Map<String, Object>> list = JSON.parseObject((String)parameters.remove("items"), new TypeReference<List<Map<String, Object>>>() {});
|
| | | List<Map<String, Object>> list = JSON.parseObject((String) parameters.remove("items"), new TypeReference<List<Map<String, Object>>>() {
|
| | | });
|
| | |
|
| | | String type = (String) parameters.get("type");
|
| | | // parameters.putAll(getElementByType(type));
|
| | |
| | | List<String> sensors = new ArrayList<String>();
|
| | | if (parameters.containsKey("sensors")) {
|
| | | try {
|
| | | sensors = JSON.parseObject((String)parameters.get("sensors"), new TypeReference<List<String>>() {});
|
| | | sensors = JSON.parseObject((String) parameters.get("sensors"), new TypeReference<List<String>>() {
|
| | | });
|
| | | for (String sensor : sensors) {
|
| | | sensorKeys.add(sensor.split("-")[0]);
|
| | | }
|
| | |
| | |
|
| | | /**
|
| | | * 根据线性表单的条件规则,获取多条线性表单数据
|
| | | *
|
| | | * @param lineChartCriteria
|
| | | * @return
|
| | | */
|
| | |
| | |
|
| | | /**
|
| | | * 根据线性表单的条件规则,获取一条线性表单数据,包含 所有检测项目
|
| | | *
|
| | | * @param sensorKeys
|
| | | * @param timePeriod
|
| | | * @param dataCondition
|
| | |
| | | }
|
| | | return resultMap;
|
| | | }
|
| | |
|
| | | /*
|
| | | * @description 查询无人机在时间段内的sensor值
|
| | | * @author ZhuDongming
|
| | | * @date 2019-07-25 09:21:45
|
| | | * @param parameters
|
| | | * @return
|
| | | */
|
| | | @Override
|
| | | public List<Map<String, Object>> getSensorData(Map<String, Object> parameters) {
|
| | | parameters.put("sensorKeys",Arrays.asList("e1", "e2", "e3", "e4", "e6", "e7", "e9", "e10", "e11", "e15", "e16", "e17", "e27", "e28", "e76", "e77", "e78", "e79", "e80", "e81"));
|
| | | return historyMinutelyMapper.getSensorData(parameters);
|
| | | }
|
| | | }
|