Commit 05c6954ef2f8106363fd33bf9480968b37356741

Authored by liquanyu
1 parent 55ae7d7df2

update code

Showing 2 changed files with 6 additions and 8 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/RiskReportFacade.java View file @ 05c6954
... ... @@ -413,6 +413,12 @@
413 413 if (slaveBasicConfigMap.containsKey(bs.getHighRiskId())) {
414 414 bs.setRiskReportResults(slaveBasicConfigMap.get(bs.getHighRiskId()));
415 415 for (RiskReportResult basicConfig : bs.getRiskReportResults()) {
  416 +
  417 + if (basicConfig.getRiskCount() == 0)
  418 + {
  419 + continue;
  420 + }
  421 +
416 422 basicConfig.setLevel(bs.getLevel() + 1);
417 423  
418 424 DecimalFormat df = new DecimalFormat("0.00");
platform-operate-api/src/main/java/com/lyms/platform/operate/web/utils/HiskCountTask.java View file @ 05c6954
... ... @@ -92,14 +92,6 @@
92 92  
93 93 //单个高危因素孕产妇条数
94 94 int riskPatientCount = patientsService.queryPatientCount(query);
95   - if (riskPatientCount == 0)
96   - {
97   - continue;
98   - }
99   -
100   -
101   - // if (riskPatientCount > 0)
102   - // {
103 95 RiskReportResult risk = new RiskReportResult();
104 96 risk.setHighRiskId(config.getId());
105 97 risk.setHighRisk(config.getName());