代码调整

This commit is contained in:
2022-11-10 10:36:08 +08:00
parent 6a3a05d45f
commit 75563a8e24
169 changed files with 1138 additions and 7595 deletions

View File

@@ -277,5 +277,24 @@ public interface LineFeignClient {
@PostMapping("getLineDetailList")
HttpResult<List<LineDetailDataVO>> getLineDetailList(@RequestBody List<String> lineIds);
/**
* @param subIndex
* @Description: 获取变电站下终端数
* @Param: [subIndex]
* @return: java.lang.Integer
* @Author: clam
* @Date: 2022/11/9
*/
@PostMapping("/getDeviceCountBySubstation")
HttpResult<Integer> getDeviceCountBySubstation(@RequestParam("subIndex") String subIndex);
/**
* @param subIndex
* @Description: 获取变电站下监测点数
* @Param: [subIndex]
* @return: java.lang.Integer
* @Author: clam
* @Date: 2022/11/9
*/
@PostMapping("/getLineCountBySubstation")
HttpResult<Integer> getLineCountBySubstation(@RequestParam("subIndex") String subIndex);
}

View File

@@ -207,6 +207,18 @@ public class LineFeignClientFallbackFactory implements FallbackFactory<LineFeign
throw new BusinessException(finalExceptionEnum);
}
@Override
public HttpResult<Integer> getDeviceCountBySubstation(@RequestParam("subIndex") String subIndex){
log.error("{}异常,降级处理,异常为:{}", "获取变电站下终端数: ", throwable.toString());
throw new BusinessException(finalExceptionEnum);
}
@Override
public HttpResult<Integer> getLineCountBySubstation(@RequestParam("subIndex") String subIndex) {
log.error("{}异常,降级处理,异常为:{}", "获取变电站下监测点数: ", throwable.toString());
throw new BusinessException(finalExceptionEnum);
}
};
}

View File

@@ -139,6 +139,9 @@ public class DeviceInfoParam implements Serializable {
@ApiModelProperty("时间范围标志 0.查询展示天 1.查询展示月")
private Integer timeFlag;
@ApiModelProperty("报表统计类型 1.年 2.季 3.月 4.周 5.天")
private String reportFlag;
}
@Data