有功功率趋势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

@@ -55,4 +55,7 @@ public interface EpdFeignClient {
@PostMapping("/findByName")
HttpResult<EleEpdPqd> findByName(@RequestParam("name") String name);
@PostMapping("/findListByShowName")
HttpResult<List<EleEpdPqd>> findListByShowName(@RequestParam("name") String name);
}

View File

@@ -100,6 +100,12 @@ public class EpdFeignClientFallbackFactory implements FallbackFactory<EpdFeignCl
log.error("{}异常,降级处理,异常为:{}","根据名称查询字典信息",cause.toString());
throw new BusinessException(finalExceptionEnum);
}
@Override
public HttpResult<List<EleEpdPqd>> findListByShowName(String name) {
log.error("{}异常,降级处理,异常为:{}","根据名称查询字典信息集合",cause.toString());
throw new BusinessException(finalExceptionEnum);
}
};
}
}

View File

@@ -214,5 +214,16 @@ public class EleEpdPqdController extends BaseController {
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, po, methodDescribe);
}
@PostMapping("/findListByShowName")
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
@ApiOperation("根据名称查询字典信息集合")
@ApiImplicitParam(name = "name", value = "指标名称", required = true)
@ApiIgnore
public HttpResult<List<EleEpdPqd>> findListByShowName(@RequestParam("name") @Validated String name){
String methodDescribe = getMethodDescribe("findListByShowName");
List<EleEpdPqd> po = eleEpdPqdService.lambdaQuery().eq(EleEpdPqd::getShowName,name).list();
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, po, methodDescribe);
}
}