Commit 65dd1d4d64b4b6d06a8c011cb6655cc1e83e4988
1 parent
843c660779
Exists in
master
and in
8 other branches
增加
Showing 1 changed file with 9 additions and 0 deletions
platform-data-api/src/main/java/com/lyms/platform/data/service/impl/DataImportTaskServiceImpl.java
View file @
65dd1d4
... | ... | @@ -14,9 +14,11 @@ |
14 | 14 | import com.lyms.platform.data.service.DataImportTaskService; |
15 | 15 | import com.lyms.platform.permission.model.*; |
16 | 16 | import com.lyms.platform.permission.service.*; |
17 | +import com.lyms.platform.pojo.BabyModel; | |
17 | 18 | import com.lyms.platform.pojo.BasicConfig; |
18 | 19 | import com.lyms.platform.pojo.CommunityConfig; |
19 | 20 | import com.lyms.platform.pojo.Patients; |
21 | +import com.lyms.platform.query.BabyModelQuery; | |
20 | 22 | import com.lyms.platform.query.PatientsQuery; |
21 | 23 | import com.lymsh.mommybaby.earlydata.dao.PlatMapper; |
22 | 24 | import com.lymsh.mommybaby.earlydata.model.PlatDataContent; |
... | ... | @@ -583,6 +585,13 @@ |
583 | 585 | } |
584 | 586 | if (isMatch){ |
585 | 587 | patientsService.updatePatient(patients); |
588 | + //修改产妇下面的小孩信息 | |
589 | + BabyModelQuery babyModelQuery = new BabyModelQuery(); | |
590 | + babyModelQuery.setYn(YnEnums.YES.getId()); | |
591 | + babyModelQuery.setParentId(patients.getId()); | |
592 | + BabyModel babyModel = new BabyModel(); | |
593 | + babyModel.setCommunityId(patients.getCommunityId()); | |
594 | + babyService.findAndModify(babyModelQuery.convertToQuery(),babyModel); | |
586 | 595 | isMatch = Boolean.FALSE; |
587 | 596 | } |
588 | 597 | } |