谐波畸变率任务配置
This commit is contained in:
@@ -30,7 +30,7 @@ public class DeviceAbnormalController extends BaseController {
|
||||
@PostMapping("/statistics")
|
||||
@ApiOperation("终端异常统计")
|
||||
@ApiImplicitParam(name = "param", value = "参数", required = true)
|
||||
public HttpResult<Boolean> dailyDeviceAbnormaStatistics(@RequestBody DeviceAbnormaStatisticsParam param) throws ParseException {
|
||||
public HttpResult<Boolean> dailyDeviceAbnormaStatistics(@RequestBody DeviceAbnormaStatisticsParam param) {
|
||||
String methodDescribe = getMethodDescribe("dailyDeviceAbnormaStatistics");
|
||||
boolean res = deviceAbnormaStatisticsService.dailyDeviceAbnormaStatistics(param);
|
||||
if(res){
|
||||
|
||||
@@ -37,8 +37,8 @@ public class DeviceAbnormaStatisticsServiceImpl implements DeviceAbnormalStatist
|
||||
|
||||
private final InfluxDbUtils influxDbUtils;
|
||||
@Override
|
||||
public boolean dailyDeviceAbnormaStatistics(DeviceAbnormaStatisticsParam param) throws ParseException {
|
||||
Map<String, List<TopMsgPO>> comMap = new HashMap<>();Map<String, List<AlarmPO>> devLineMap = new HashMap<>();
|
||||
public boolean dailyDeviceAbnormaStatistics(DeviceAbnormaStatisticsParam param) {
|
||||
Map<String, List<TopMsgPO>> comMap = new HashMap<>();
|
||||
Map<String, List<AlarmPO>> deviceFlowAndOnlineRateMap = new HashMap<>();
|
||||
// 获取所有装置以及下属监测点
|
||||
List<AlarmPO> lines = deviceAbnormaStatisticsMapper.getLines();
|
||||
@@ -156,7 +156,7 @@ public class DeviceAbnormaStatisticsServiceImpl implements DeviceAbnormalStatist
|
||||
String format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(instant.toEpochMilli());
|
||||
return format;
|
||||
}
|
||||
public List<TopMsgPO> getCommunicate(List<String> devs, String startTime, String endTime) throws ParseException {
|
||||
public List<TopMsgPO> getCommunicate(List<String> devs, String startTime, String endTime) {
|
||||
// startTime ="2023-04-02";
|
||||
// endTime = "2023-04-02";
|
||||
//组装sql语句
|
||||
|
||||
@@ -59,7 +59,7 @@ public class DistortionRateServiceImpl implements DistortionRateService {
|
||||
}
|
||||
LocalDateTime local = LocalDateTimeUtil.parse (lineParam.getDataDate ( ) + "T00:00:00");
|
||||
for (String lineId : lineIdOutList) {
|
||||
List<DataVPO> rateOut = getDistortionRateInfluxDb (lineId, lineParam.getDataDate ( ));
|
||||
List<DataVPO> rateOut = getDistortionRateInfluxDb (lineId, lineParam.getDataDate());
|
||||
if (rateOut.size ( ) > 0) {
|
||||
Map<String, Object> inMap = new HashMap<> ( );
|
||||
inMap.put ("lineId", lineId);
|
||||
|
||||
@@ -5,5 +5,6 @@ import com.njcn.prepare.harmonic.pojo.param.DeviceAbnormaStatisticsParam;
|
||||
import java.text.ParseException;
|
||||
|
||||
public interface DeviceAbnormalStatisticsService {
|
||||
boolean dailyDeviceAbnormaStatistics(DeviceAbnormaStatisticsParam param) throws ParseException;
|
||||
|
||||
boolean dailyDeviceAbnormaStatistics(DeviceAbnormaStatisticsParam param);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user