Commit b67cf53769852525454748bb0d58d5f0dff72b8f
1 parent
4c13018d0e
Exists in
master
and in
6 other branches
update
Showing 1 changed file with 2 additions and 3 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyAutoDiagnoseRiskFacade.java
View file @
b67cf53
| ... | ... | @@ -917,7 +917,7 @@ |
| 917 | 917 | String hospitalId = autoMatchFacade.getHospitalId(userId); |
| 918 | 918 | AutoBabyRiskRecord autoBabyRiskRecord1 = queryById(autoBabyRiskRecord.getId()); |
| 919 | 919 | if(autoBabyRiskRecord1 ==null){ |
| 920 | - return new BaseResponse().setErrorcode(ErrorCodeConstants.NO_DATA).setErrormsg("没有改数据"); | |
| 920 | + return new BaseResponse().setErrorcode(ErrorCodeConstants.NO_DATA).setErrormsg("没有数据"); | |
| 921 | 921 | } |
| 922 | 922 | |
| 923 | 923 | //修改成确认状态后,修改最后一条检查诊断,或修改儿童建档诊断 |
| ... | ... | @@ -932,7 +932,6 @@ |
| 932 | 932 | getDiagnosisId(autoBabyRiskRecord1, list); |
| 933 | 933 | boolean bb = false; |
| 934 | 934 | if (CollectionUtils.isNotEmpty(babyCheckModels)) { |
| 935 | - bb = true; | |
| 936 | 935 | BabyCheckModel babyCheckModel = babyCheckModels.get(0); |
| 937 | 936 | if (babyCheckModel != null && StringUtils.isNotEmpty(babyCheckModel.getDiagnose())) { |
| 938 | 937 | stringList = JsonUtil.toList(babyCheckModel.getDiagnose(), String.class); |
| ... | ... | @@ -966,7 +965,7 @@ |
| 966 | 965 | mongoTemplate.updateFirst(new Query(Criteria.where("id").is(autoBabyRiskRecord1.getId())), Update.update("status", 1), AutoBabyRiskRecord.class); |
| 967 | 966 | return new BaseResponse().setErrorcode(ErrorCodeConstants.SUCCESS).setErrormsg("成功"); |
| 968 | 967 | }else { |
| 969 | - return new BaseResponse().setErrorcode(ErrorCodeConstants.NO_DATA).setErrormsg("失败"); | |
| 968 | + return new BaseResponse().setErrorcode(ErrorCodeConstants.NO_DATA).setErrormsg("儿童未建档"); | |
| 970 | 969 | } |
| 971 | 970 | |
| 972 | 971 |