Commit 4f1f51ac57d0f9010652355c5b90e6ef26a26c3d
1 parent
7811820748
Exists in
master
and in
2 other branches
档案保存代码优化
Showing 1 changed file with 9 additions and 5 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BookbuildingFacade.java
View file @
4f1f51a
... | ... | @@ -394,6 +394,13 @@ |
394 | 394 | //孕妇档案 |
395 | 395 | Patients p = yunBookbuildingService.addPregnantBookbuilding(patient); |
396 | 396 | |
397 | + if (p == null || p.getId() == null) { | |
398 | + br.setErrorcode(ErrorCodeConstants.SYSTEM_ERROR); | |
399 | + br.setErrormsg("建档失败,保存异常"); | |
400 | + return br; | |
401 | + | |
402 | + } | |
403 | + | |
397 | 404 | //添加追访信息 |
398 | 405 | addTrackDownInfo(userId, p); |
399 | 406 | |
400 | 407 | |
401 | 408 | |
... | ... | @@ -427,14 +434,11 @@ |
427 | 434 | } |
428 | 435 | |
429 | 436 | |
430 | - if (p == null || p.getId() == null) { | |
431 | - br.setErrorcode(ErrorCodeConstants.SYSTEM_ERROR); | |
432 | - br.setErrormsg("建档失败,保存异常"); | |
433 | - return br; | |
434 | 437 | |
435 | - } | |
436 | 438 | //加入产筛 |
437 | 439 | patientsService.validata(p); |
440 | + | |
441 | + //这个逻辑代码已经无用处,后续删除, cfl 20230928 TODO | |
438 | 442 | if (p.getType() != null && p.getType() == 1) { |
439 | 443 | Organization organization = organizationService.getOrganization(Integer.valueOf(yunRequest.getHospitalId())); |
440 | 444 | if (null != organization) { |