Commit 4bafbd464896c811940ac21b72cbbdf41089a72f
1 parent
8bd9d737a1
Exists in
master
and in
6 other branches
自定义高危因素
Showing 1 changed file with 2 additions and 2 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/HosptialHighRiskController.java
View file @
4bafbd4
... | ... | @@ -49,8 +49,8 @@ |
49 | 49 | public BaseResponse addHightRisk(@Valid @RequestBody HosptialHighRisk request, HttpServletRequest httpServletRequest) { |
50 | 50 | LoginContext loginState = (LoginContext) httpServletRequest.getAttribute("loginContext"); |
51 | 51 | //分数为空 |
52 | - if(request.getScore()==null||request.getScore()==0){ | |
53 | - return new BaseResponse("请填写高危因数分数", ErrorCodeConstants.PARAMETER_ERROR); | |
52 | + if(StringUtils.isEmpty(request.getCode())){ | |
53 | + return new BaseResponse("请选择高危因数分数", ErrorCodeConstants.PARAMETER_ERROR); | |
54 | 54 | }else if(StringUtils.isEmpty(request.getName())){//高危因数名称为null |
55 | 55 | return new BaseResponse("请填写高危因数名称", ErrorCodeConstants.PARAMETER_ERROR); |
56 | 56 | }else if(StringUtils.isEmpty(request.getColor())){//高危因数等级null |