终端模块调整influx查询

This commit is contained in:
2023-08-09 13:57:13 +08:00
parent e388a06937
commit a5d1048bb8
43 changed files with 151 additions and 2196 deletions

View File

@@ -1,7 +1,11 @@
package com.njcn.influx.imapper;
import com.njcn.influx.base.InfluxDbBaseMapper;
import com.njcn.influx.pojo.dto.DeviceDayFlowDTO;
import com.njcn.influx.pojo.po.CldStatisFlow;
import com.njcn.influx.query.InfluxQueryWrapper;
import java.util.List;
/**
* @author hongawen
@@ -11,4 +15,5 @@ import com.njcn.influx.pojo.po.CldStatisFlow;
public interface CldStatisticsFlowMapper extends InfluxDbBaseMapper<CldStatisFlow>{
List<DeviceDayFlowDTO> selectDeviceDayFlowByQueryWrapper(InfluxQueryWrapper influxQueryWrapper);
}

View File

@@ -0,0 +1,13 @@
package com.njcn.influx.imapper;
import com.njcn.influx.base.InfluxDbBaseMapper;
import com.njcn.influx.pojo.po.PqsCommunicate;
/**
* @author hongawen
* @version 1.0.0
* @date 2023年08月09日 09:29
*/
public interface PqsCommunicateMapper extends InfluxDbBaseMapper<PqsCommunicate> {
}

View File

@@ -0,0 +1,19 @@
package com.njcn.influx.pojo.dto;
import com.njcn.influx.pojo.po.CldStatisFlow;
import lombok.Data;
import org.influxdb.annotation.Column;
import org.influxdb.annotation.Measurement;
import java.time.Instant;
@Data
@Measurement(name = "cld_statis_flow")
public class DeviceDayFlowDTO extends CldStatisFlow {
private float dailyActualValue;
private String date;
private String month;
}

View File

@@ -0,0 +1,9 @@
package com.njcn.influx.service;
/**
* @author hongawen
* @version 1.0.0
* @date 2023年08月09日 09:28
*/
public interface PqsCommunicateService {
}

View File

@@ -0,0 +1,13 @@
package com.njcn.influx.service.impl;
import com.njcn.influx.service.PqsCommunicateService;
import org.springframework.stereotype.Service;
/**
* @author hongawen
* @version 1.0.0
* @date 2023年08月09日 09:28
*/
@Service
public class PqsCommunicateServiceImpl implements PqsCommunicateService {
}