代码调整
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user