有功功率趋势2

This commit is contained in:
guofeihu
2024-08-29 16:30:46 +08:00
parent ee1f36617d
commit e13b1f156e
15 changed files with 320 additions and 62 deletions

View File

@@ -25,6 +25,6 @@ public interface RActivePowerRangeFeignClient {
HttpResult<Boolean> record();
@GetMapping("/getDataByLineId")
HttpResult<RActivePowerRangePO> getDataByLineId(@RequestParam("lineId") String lineId);
HttpResult<RActivePowerRangePO> getDataByLineId(@RequestParam("lineId") String lineId,@RequestParam("startTime") String startTime,@RequestParam("endTime") String endTime);
}

View File

@@ -36,7 +36,7 @@ public class RActivePowerRangeFeignClientFallbackFactory implements FallbackFact
}
@Override
public HttpResult<RActivePowerRangePO> getDataByLineId(String lineId) {
public HttpResult<RActivePowerRangePO> getDataByLineId(String lineId,String startTime,String endTime) {
log.error("{}异常,降级处理,异常为:{}", "根据监测点ID获取有功功率趋势信息: ", throwable.toString());
throw new BusinessException(finalExceptionEnum);
}

View File

@@ -44,7 +44,7 @@ public class RActivePowerRangePO extends BaseEntity {
/**
* 0%~10%区间是否越限
*/
private Integer isOrNot0;
private Integer isOrNot0 = 0;
/**
* 10%~20%区间时间Json
@@ -59,7 +59,7 @@ public class RActivePowerRangePO extends BaseEntity {
/**
* 10%~20%区间是否越限
*/
private Integer isOrNot1;
private Integer isOrNot1 = 0;
/**
* 20%~30%区间时间Json
@@ -74,7 +74,7 @@ public class RActivePowerRangePO extends BaseEntity {
/**
* 20%~30%区间是否越限
*/
private Integer isOrNot2;
private Integer isOrNot2 = 0;
/**
* 30%~40%区间时间Json
@@ -89,7 +89,7 @@ public class RActivePowerRangePO extends BaseEntity {
/**
* 30%~40%区间是否越限
*/
private Integer isOrNot3;
private Integer isOrNot3 = 0;
/**
* 40%~50%区间时间Json
@@ -104,7 +104,7 @@ public class RActivePowerRangePO extends BaseEntity {
/**
* 40%~50%区间是否越限
*/
private Integer isOrNot4;
private Integer isOrNot4 = 0;
/**
* 50%~60%区间时间Json
@@ -119,7 +119,7 @@ public class RActivePowerRangePO extends BaseEntity {
/**
* 50%~60%区间是否越限
*/
private Integer isOrNot5;
private Integer isOrNot5 = 0;
/**
* 60%~70%区间时间Json
@@ -134,7 +134,7 @@ public class RActivePowerRangePO extends BaseEntity {
/**
* 60%~70%区间是否越限
*/
private Integer isOrNot6;
private Integer isOrNot6 = 0;
/**
* 70%~80%区间时间Json
@@ -149,7 +149,7 @@ public class RActivePowerRangePO extends BaseEntity {
/**
* 70%~80%区间是否越限
*/
private Integer isOrNot7;
private Integer isOrNot7 = 0;
/**
* 80%~90%区间时间Json
@@ -164,7 +164,7 @@ public class RActivePowerRangePO extends BaseEntity {
/**
* 80%~90%区间是否越限
*/
private Integer isOrNot8;
private Integer isOrNot8 = 0;
/**
* 90%~100%区间时间Json
@@ -179,7 +179,7 @@ public class RActivePowerRangePO extends BaseEntity {
/**
* 90%~100%区间是否越限
*/
private Integer isOrNot9;
private Integer isOrNot9 = 0;
/**
* 状态0-删除 1-正常