fix(service): 修复电压等级获取和服务调用中的空指针异常
- 在CsEventUserPOServiceImpl中添加空值检查避免map.get返回null时的异常 - 移除CsGroupController中多余的空行 - 在CsGroupServiceImpl中引入PqGovernPlanFeignClient并重构敏感用户趋势数据查询逻辑 - 修改系统服务中EPD PQD树形结构构建的名称设置逻辑 - 更新PqGovernPlan服务接口增加治理类型参数支持 - 优化LineTargetServiceImpl中目标标签解析逻辑 - 在PqGovernPlanFeignClient中添加根据ID查询治理方案的接口方法 - 为PqGovernPlanClientFallbackFactory添加getById方法的降级处理 - 修复PqSensitiveUserServiceImpl中用户设备树构建的数据获取逻辑 - 重构RStatLimitRateDServiceImpl中限值统计结果分页和数据显示逻辑
This commit is contained in:
@@ -9,6 +9,7 @@ import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -27,4 +28,8 @@ public interface PqGovernPlanFeignClient {
|
||||
@ApiOperation("清空治理前后监测点数据")
|
||||
HttpResult<List<PqGovernPlan>> getListByMonitorPoint(@RequestBody List<String> ids);
|
||||
|
||||
@GetMapping("/getById")
|
||||
@ApiOperation("根据ID查询治理方案")
|
||||
HttpResult<PqGovernPlan> getById(@RequestParam("id") String id);
|
||||
|
||||
}
|
||||
|
||||
@@ -37,6 +37,12 @@ public class PqGovernPlanClientFallbackFactory implements FallbackFactory<PqGove
|
||||
log.error("{}异常,降级处理,异常为:{}","清空治理前后监测点数据异常",cause.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<PqGovernPlan> getById(String id) {
|
||||
log.error("{}异常,降级处理,异常为:{}","根据ID查询治理方案异常",cause.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user