Commit 5fa5e1a3dc1f35baadfedc0a60c1c0b12da4d421
1 parent
4889105e04
Exists in
master
and in
8 other branches
code update
Showing 1 changed file with 19 additions and 0 deletions
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/JdbcUtil.java
View file @
5fa5e1a
| ... | ... | @@ -189,6 +189,10 @@ |
| 189 | 189 | // MongoTemplate mongoTemplate = getMongoTemplate(); |
| 190 | 190 | |
| 191 | 191 | for (Map<String, Object> map : list) { |
| 192 | + | |
| 193 | + try { | |
| 194 | + | |
| 195 | + | |
| 192 | 196 | Patients patients = new Patients(); |
| 193 | 197 | PersonModel person = new PersonModel(); |
| 194 | 198 | |
| 195 | 199 | |
| ... | ... | @@ -511,7 +515,13 @@ |
| 511 | 515 | mongoTemplate.save(patients); |
| 512 | 516 | syncChuZhen(person.getId(), patients.getId(), mongoTemplate); |
| 513 | 517 | syncFuzhen(person.getId(), patients.getId(), mongoTemplate); |
| 518 | + } catch (Exception e) | |
| 519 | + { | |
| 520 | + ExceptionUtils.catchException(e,map+"孕妇异常"); | |
| 521 | + continue; | |
| 522 | + } | |
| 514 | 523 | } |
| 524 | + | |
| 515 | 525 | } |
| 516 | 526 | } |
| 517 | 527 | |
| ... | ... | @@ -914,6 +924,10 @@ |
| 914 | 924 | |
| 915 | 925 | for (Map<String, Object> map : list) { |
| 916 | 926 | |
| 927 | + try { | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 917 | 931 | PersonModel personModel = new PersonModel(); |
| 918 | 932 | personModel.setPhone(getString(map.get("PI_MOTHERPHONE"))); |
| 919 | 933 | personModel.setName(getString(map.get("PI_NAME"))); |
| ... | ... | @@ -1106,6 +1120,11 @@ |
| 1106 | 1120 | |
| 1107 | 1121 | mongoTemplate.save(model); |
| 1108 | 1122 | syncBabyCheck(model.getId(),mongoTemplate); |
| 1123 | + } catch (Exception e) | |
| 1124 | + { | |
| 1125 | + ExceptionUtils.catchException(e,map+"儿童异常"); | |
| 1126 | + continue; | |
| 1127 | + } | |
| 1109 | 1128 | } |
| 1110 | 1129 | } |
| 1111 | 1130 | } |