Commit 1f92f47c6a80a7c973538d4d648bd0c24999c80b

Authored by jiangjiazhi
1 parent 52b830969f

修改产检删除

Showing 1 changed file with 4 additions and 0 deletions

platform-biz-patient-service/src/main/java/com/lyms/platform/biz/service/AntExRecordService.java View file @ 1f92f47
... ... @@ -109,6 +109,7 @@
109 109 AntExRecordQuery antExRecordQuery = new AntExRecordQuery();
110 110 antExRecordQuery.setPid(record.getPid());
111 111 antExRecordQuery.setcId(record.getCheckDoctor());
  112 + antExRecordQuery.setfId(record.getfId());
112 113 Integer count = count(antExRecordQuery);
113 114 if (null == count || 0 == count) {
114 115 antExRecordDao.addOneRecord(record);
... ... @@ -130,6 +131,7 @@
130 131 AntExRecordQuery antExRecordQuery = new AntExRecordQuery();
131 132 antExRecordQuery.setPid(record.getPid());
132 133 antExRecordQuery.setcId(record.getCheckDoctor());
  134 + antExRecordQuery.setfId(record.getfId());
133 135 Integer count = count(antExRecordQuery);
134 136 if (null == count || 0 == count) {
135 137 antExRecordDao.addOneRecord(record);
... ... @@ -212,6 +214,7 @@
212 214 antExRecordModel.setModified(new Date());
213 215 antExRecordModel.setBarCode(antEx.getBarCode());
214 216 antExRecordModel.setNextCheckTime(antEx.getNextCheckTime());
  217 + antExRecordModel.setCheckTime(antEx.getCheckDate());
215 218 Patients patients = patientsService.findOnePatientById(antEx.getParentId());
216 219 if (null != patients) {
217 220 if (patients.getType() == 1) {
... ... @@ -252,6 +255,7 @@
252 255 antExRecordModel.setPid(antExChuModel.getPid());
253 256 antExRecordModel.setModified(new Date());
254 257 antExRecordModel.setBarCode(antExChuModel.getBarCode());
  258 + antExRecordModel.setCheckTime(antExChuModel.getCheckTime());
255 259 antExRecordModel.setNextCheckTime(antExChuModel.getNextCheckTime());
256 260 Patients patients = patientsService.findOnePatientById(antExChuModel.getParentId());
257 261 if (null != patients) {