Commit beff7e0b1680dc7d8c31db235f8987b10b56008d
1 parent
6fe0c8f071
Exists in
master
and in
1 other branch
update code
Showing 2 changed files with 12 additions and 0 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/RiskReportFacade.java
View file @
beff7e0
... | ... | @@ -414,6 +414,12 @@ |
414 | 414 | if (slaveBasicConfigMap.containsKey(bs.getHighRiskId())) { |
415 | 415 | bs.setRiskReportResults(slaveBasicConfigMap.get(bs.getHighRiskId())); |
416 | 416 | for (RiskReportResult basicConfig : bs.getRiskReportResults()) { |
417 | + | |
418 | + if (basicConfig.getRiskCount() == 0) | |
419 | + { | |
420 | + continue; | |
421 | + } | |
422 | + | |
417 | 423 | basicConfig.setLevel(bs.getLevel() + 1); |
418 | 424 | |
419 | 425 | DecimalFormat df = new DecimalFormat("0.00"); |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/utils/HiskCountTask.java
View file @
beff7e0
... | ... | @@ -92,6 +92,12 @@ |
92 | 92 | |
93 | 93 | //单个高危因素孕产妇条数 |
94 | 94 | int riskPatientCount = patientsService.queryPatientCount(query); |
95 | + if (riskPatientCount == 0) | |
96 | + { | |
97 | + continue; | |
98 | + } | |
99 | + | |
100 | + | |
95 | 101 | RiskReportResult risk = new RiskReportResult(); |
96 | 102 | risk.setHighRiskId(config.getId()); |
97 | 103 | risk.setHighRisk(config.getName()); |