有功功率趋势2
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user