Commit 8fc352182cd1654f02dce79cdca8e215c4181fb9
1 parent
b08f40db56
Exists in
master
and in
8 other branches
增加设置parentid
Showing 1 changed file with 15 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/ApplyOrderFacade.java
View file @
8fc3521
... | ... | @@ -102,9 +102,15 @@ |
102 | 102 | referralApplyOrderModel.setBirth(patients.getBirth()); |
103 | 103 | referralApplyOrderModel.setExpVip(patients.getExpVip()); |
104 | 104 | int days = DateUtil.daysBetween(patients.getLastMenses(), new Date()); |
105 | - ; | |
105 | + | |
106 | 106 | referralApplyOrderModel.setPid(patients.getPid()); |
107 | 107 | referralApplyOrderModel.setDueWeek(com.lyms.platform.common.utils.StringUtils.dueWeek(days)); |
108 | + | |
109 | + patients.setId(null); | |
110 | + patients.setHospitalId(hospital); | |
111 | + patients.setBookbuildingDate(new Date()); | |
112 | + patients.setBookbuildingDoctor(null); | |
113 | + patientsService.addPatient(patients); | |
108 | 114 | } |
109 | 115 | } else { |
110 | 116 | BabyModel babyModel = babyService.getOneBabyById(referralApplyOrderModel.getParentId()); |
... | ... | @@ -125,6 +131,13 @@ |
125 | 131 | referralApplyOrderModel.setCardNo(patients.getCardNo()); |
126 | 132 | referralApplyOrderModel.setExpVip(babyModel.getExpVip()); |
127 | 133 | referralApplyOrderModel.setPid(babyModel.getPid()); |
134 | + | |
135 | + //新增儿童建档 | |
136 | + babyModel.setId(null); | |
137 | + babyModel.setHospitalId(hospital); | |
138 | + babyModel.setBuildDoctor(null); | |
139 | + babyModel.setBuildDate(new Date()); | |
140 | + babyService.addOneBaby(babyModel); | |
128 | 141 | } |
129 | 142 | } |
130 | 143 | |
... | ... | @@ -143,6 +156,7 @@ |
143 | 156 | } |
144 | 157 | |
145 | 158 | /** |
159 | + * | |
146 | 160 | * 增加产前筛查 |
147 | 161 | * |
148 | 162 | * @param sieveApplyOrderAddRequest |