Commit 6278fb307ca5aa0e97527e245561127f1b0fdadd
1 parent
d293ea3841
Exists in
master
and in
6 other branches
改字段
Showing 1 changed file with 4 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/BabyEyeCheckServiceImpl.java
View file @
6278fb3
... | ... | @@ -105,6 +105,9 @@ |
105 | 105 | @Override |
106 | 106 | public BaseResponse info(String id) { |
107 | 107 | BabyEyeCheck babyEyeCheck = mongoTemplate.findById(id, BabyEyeCheck.class); |
108 | + if(babyEyeCheck == null) { | |
109 | + return RespBuilder.buildSuccess(); | |
110 | + } | |
108 | 111 | Map<String, Object> map = ReflectionUtils.beanToMap(babyEyeCheck); |
109 | 112 | map.put("eyeMovementsId", "xz".equals(babyEyeCheck.getEyeMovementsId()) ? "限制" : "xt".equals(babyEyeCheck.getEyeMovementsId()) ? "协调" : ""); |
110 | 113 | map.put("nystagmus", parseYinYang(babyEyeCheck.getNystagmus())); |
... | ... | @@ -119,7 +122,7 @@ |
119 | 122 | if(CollectionUtils.isNotEmpty(riskFactorNames)) { |
120 | 123 | for (int i = 0; i < riskFactorNames.size(); i++) { |
121 | 124 | if("其他".equals(riskFactorNames.get(i))) { |
122 | - riskFactorNames.set(i, "其他:" + map.get("riskFactorIdOther") == null ? "" : map.get("riskFactorIdOther").toString()); | |
125 | + riskFactorNames.set(i, "其他:" + (babyEyeCheck.getRiskFactorIdOther() == null ? "" : map.get("riskFactorIdOther").toString())); | |
123 | 126 | } |
124 | 127 | } |
125 | 128 | } |