| | |
| | | Map<String, Object> dataMap = new HashMap<>(); |
| | | List<InfluxPointValuePOJO> pointValues = new ArrayList<>(); |
| | | |
| | | // 读取常量点 |
| | | log.info("读取常量点"); |
| | | List<DaPointDTO> pointConstantList = daPointService.getConstantPoint(minfreq); |
| | | pointValues.addAll(constantHandle.handle(collectTime, pointConstantList, dataMap)); |
| | | |
| | | // 读取测量点 |
| | | log.info("读取测量点"); |
| | | List<DaPointDTO> pointMeasureList = daPointService.getMeasurePoint(minfreq); |
| | | pointValues.addAll(measureHandle.handle(collectTime, pointMeasureList, dataMap)); |
| | | |
| | | // 读取计算点 |
| | | log.info("读取计算点"); |
| | | List<DaPointDTO> pointCalculateList = daPointService.getMathPoint(minfreq); |
| | | pointValues.addAll(calculateHandle.handle(collectTime, pointCalculateList, dataMap)); |
| | | |
| | | // 存入数据库 |
| | | log.info("存入数据库"); |
| | | influxDBService.asyncWritePointValues(pointValues); |
| | | |