Commit 2b13939a7197dc0b526e12cb89b9704de59873b7
1 parent
c24198dc23
Exists in
master
and in
8 other branches
增加权限
Showing 1 changed file with 5 additions and 5 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/VisitFacade.java
View file @
2b13939
... | ... | @@ -275,6 +275,10 @@ |
275 | 275 | return findBabyVisit(puerperaModel);*/ |
276 | 276 | BabyModel babyModel = findOneBabyByMphone(cardNo); |
277 | 277 | |
278 | + if (null != babyModel) { | |
279 | + return findBabyVisit(babyModel); | |
280 | + } | |
281 | + | |
278 | 282 | PatientsQuery patientsQuery =new PatientsQuery(); |
279 | 283 | patientsQuery.setYn(YnEnums.YES.getId()); |
280 | 284 | patientsQuery.setType(3); |
... | ... | @@ -289,11 +293,7 @@ |
289 | 293 | babyVisitResult.setData(Collections.EMPTY_LIST); |
290 | 294 | return new BaseObjectResponse().setErrorcode(ErrorCodeConstants.SUCCESS).setErrormsg("成功").setData(babyVisitResult); |
291 | 295 | } |
292 | - | |
293 | - if (null == babyModel) { | |
294 | - return new BaseObjectResponse().setErrorcode(ErrorCodeConstants.DEPT_NOT_EXISTS).setErrormsg("新生儿信息不存在"); | |
295 | - } | |
296 | - return findBabyVisit(babyModel); | |
296 | + return new BaseObjectResponse().setErrorcode(ErrorCodeConstants.DEPT_NOT_EXISTS).setErrormsg("新生儿信息不存在"); | |
297 | 297 | } |
298 | 298 | |
299 | 299 | /** |