终端模块调整influx查询
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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> {
|
||||
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package com.njcn.influx.service;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @version 1.0.0
|
||||
* @date 2023年08月09日 09:28
|
||||
*/
|
||||
public interface PqsCommunicateService {
|
||||
}
|
||||
@@ -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 {
|
||||
}
|
||||
Reference in New Issue
Block a user