Commit 4ccb1e43d0ce034668774237f961e4df80d07497

Authored by yangfei
1 parent fd670a19e1

自动生成追访信息

Showing 1 changed file with 24 additions and 21 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/TrackDownServiceImpl.java View file @ 4ccb1e4
... ... @@ -150,18 +150,19 @@
150 150 AntExRecordQuery antExRecordQuery = new AntExRecordQuery();
151 151 antExRecordQuery.setParentId(patients.getId());
152 152 temp.put("yjcount", recordService.count(antExRecordQuery)); // 孕检次数
153   -
154   - //产后复查
155   - PostReviewQuery postReviewQuery = new PostReviewQuery();
156   - postReviewQuery.setParentId(patients.getId());
157   - postReviewQuery.setYn(YnEnums.YES.getId());
158   - Integer postInt = postReviewService.count(postReviewQuery);
159   - if (postInt > 0) {//大于0
160   - temp.put("chfc", 1);
161   - } else if(patients.getType() == 3){
162   - temp.put("chfc", 2);
  153 + if (patients.getType() == 3) {
  154 + //产后复查
  155 + PostReviewQuery postReviewQuery = new PostReviewQuery();
  156 + postReviewQuery.setParentId(patients.getId());
  157 + postReviewQuery.setYn(YnEnums.YES.getId());
  158 + Integer postInt = postReviewService.count(postReviewQuery);
  159 + if (postInt > 0) {//大于0
  160 + temp.put("chfc", 1);
  161 + } else if(patients.getType() == 3){
  162 + temp.put("chfc", 2);
  163 + }
  164 + temp.put("chfcCount", postInt); // 复查次数
163 165 }
164   - temp.put("chfcCount", postInt); // 复查次数
165 166  
166 167 SieveResultQuery sieveResultQuery = new SieveResultQuery();
167 168 sieveResultQuery.setParentId(patients.getId());
168 169  
... ... @@ -231,17 +232,19 @@
231 232 antExRecordQuery.setParentId(patient.getId());
232 233 temp.put("yjcount", recordService.count(antExRecordQuery)); // 孕检次数
233 234  
234   - //产后复查
235   - PostReviewQuery postReviewQuery = new PostReviewQuery();
236   - postReviewQuery.setParentId(patient.getId());
237   - postReviewQuery.setYn(YnEnums.YES.getId());
238   - Integer postInt = postReviewService.count(postReviewQuery);
239   - if (postInt > 0) {//大于0
240   - temp.put("chfc", 1);
241   - } else if(patient.getType() == 3){
242   - temp.put("chfc", 2);
  235 + if(patient.getType() == 3){//分娩后
  236 + //产后复查
  237 + PostReviewQuery postReviewQuery = new PostReviewQuery();
  238 + postReviewQuery.setParentId(patient.getId());
  239 + postReviewQuery.setYn(YnEnums.YES.getId());
  240 + Integer postInt = postReviewService.count(postReviewQuery);
  241 + if (postInt > 0) {//大于0
  242 + temp.put("chfc", 1);
  243 + } else if(patient.getType() == 3){
  244 + temp.put("chfc", 2);
  245 + }
  246 + temp.put("chfcCount", postInt); // 复查次数
243 247 }
244   - temp.put("chfcCount", postInt); // 复查次数
245 248  
246 249 SieveResultQuery sieveResultQuery = new SieveResultQuery();
247 250 sieveResultQuery.setParentId(patient.getId());