污区数据部分代码提交
This commit is contained in:
@@ -32,4 +32,7 @@ public interface DataIFeignClient {
|
||||
|
||||
@PostMapping("/addList")
|
||||
HttpResult<String> addList(@RequestBody List<DataIDto> dataIDtoList);
|
||||
|
||||
@PostMapping("/getDataI")
|
||||
HttpResult<List<DataIDto>> getDataI(@RequestBody LineCountEvaluateParam lineParam);
|
||||
}
|
||||
|
||||
@@ -35,4 +35,6 @@ public interface DataPltFeignClient {
|
||||
@PostMapping("/addList")
|
||||
HttpResult<String> addList(@RequestBody List<DataPltDto> list);
|
||||
|
||||
@PostMapping("/getDataPlt")
|
||||
HttpResult<List<DataPltDto>> getDataPlt(@RequestBody LineCountEvaluateParam lineParam);
|
||||
}
|
||||
|
||||
@@ -64,6 +64,12 @@ public class DataIFeignClientFallbackFactory implements FallbackFactory<DataIFei
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<List<DataIDto>> getDataI(LineCountEvaluateParam lineParam) {
|
||||
log.error("{}异常,降级处理,异常为:{}","获取电流数据",cause.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -64,6 +64,12 @@ public class DataPltFeignClientFallbackFactory implements FallbackFactory<DataPl
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<List<DataPltDto>> getDataPlt(LineCountEvaluateParam lineParam) {
|
||||
log.error("{}异常,降级处理,异常为:{}","获取闪变数据",cause.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
package com.njcn.dataProcess.po.relation;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDate;
|
||||
|
||||
/**
|
||||
* @Author: cdf
|
||||
* @CreateTime: 2025-03-19
|
||||
* @Description: 监测点污区实体
|
||||
*/
|
||||
@Data
|
||||
@TableName(value = "r_mp_pollution_d")
|
||||
public class RMpPollutionDPO implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@TableField(value = "line_id")
|
||||
@ApiModelProperty(value = "监测点")
|
||||
private String lineId;
|
||||
|
||||
/**
|
||||
* 时间
|
||||
*/
|
||||
@TableField(value = "data_date")
|
||||
@ApiModelProperty(value = "时间")
|
||||
private LocalDate dataDate;
|
||||
|
||||
/**
|
||||
* 污区图统计类型
|
||||
*/
|
||||
@TableField(value = "pollution_type")
|
||||
@ApiModelProperty(value = "污区图统计类型")
|
||||
private String pollutionType;
|
||||
|
||||
/**
|
||||
* 统计值
|
||||
*/
|
||||
@TableField(value = "value")
|
||||
@ApiModelProperty(value = "统计值")
|
||||
private Double value;
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user