Commit 078e9172e6fb8d4da49c2c0e4107f244019ff889
1 parent
522e3e41b3
Exists in
master
and in
6 other branches
追访概况婚检
Showing 1 changed file with 5 additions and 2 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/TrackDownServiceImpl.java
View file @
078e917
| ... | ... | @@ -119,8 +119,9 @@ |
| 119 | 119 | temp.put("chfc", 3);//产后复查空白 |
| 120 | 120 | Long checkNum = mongoTemplate.count(Query.query(Criteria.where("certificateNum").is(archiveModel.getCertificateNum()).and("yn").is(1)), PremaritalCheckup.class); |
| 121 | 121 | temp.put("resident", 1); // 妇女建档 |
| 122 | - temp.put("check", checkNum>0?1:2); // 婚检 1=勾勾 2=叉叉 | |
| 122 | + temp.put("check", 3); // 婚检 | |
| 123 | 123 | |
| 124 | + | |
| 124 | 125 | PatientsQuery patientsQuery = new PatientsQuery(); |
| 125 | 126 | patientsQuery.setHospitalId(archiveModel.getHospitalId()); |
| 126 | 127 | if (archiveModel.getCertificateNum() != null) { |
| ... | ... | @@ -134,6 +135,8 @@ |
| 134 | 135 | List<Patients> patientsList = patientsService.queryPatient(patientsQuery); |
| 135 | 136 | |
| 136 | 137 | if (CollectionUtils.isNotEmpty(patientsList)) { |
| 138 | + temp.put("check", checkNum>0?1:2); // 婚检 1=勾勾 2=叉叉 | |
| 139 | + | |
| 137 | 140 | Patients patients = patientsList.get(0); |
| 138 | 141 | temp.put("bookbuild", 1); // 孕期建档 1=勾勾 2=叉叉 |
| 139 | 142 | temp.put("bookbuildDate", DateUtil.getyyyy_MM_dd(patients.getBookbuildingDate())); |
| ... | ... | @@ -142,6 +145,7 @@ |
| 142 | 145 | temp.put("fmType", patients.getFmType()); // 分娩方式 1: 顺产,2:剖宫产 |
| 143 | 146 | } |
| 144 | 147 | |
| 148 | + | |
| 145 | 149 | AntExRecordQuery antExRecordQuery = new AntExRecordQuery(); |
| 146 | 150 | antExRecordQuery.setParentId(patients.getId()); |
| 147 | 151 | temp.put("yjcount", recordService.count(antExRecordQuery)); // 孕检次数 |
| ... | ... | @@ -189,7 +193,6 @@ |
| 189 | 193 | temp.put("cqsc", 3);//产前筛查默认空白 |
| 190 | 194 | temp.put("fm", 3);//分娩空白 |
| 191 | 195 | temp.put("chfc", 3);//产后复查空白 |
| 192 | - | |
| 193 | 196 | //婚检查询 |
| 194 | 197 | Long checkNum = mongoTemplate.count(Query.query(Criteria.where("certificateNum").is(patient.getCardNo()).and("yn").is(1)), PremaritalCheckup.class); |
| 195 | 198 | temp.put("check", checkNum>0?1:2); // 婚检 1=勾勾 2=叉叉 |