Commit 7e23046afd24de4916b8aa713c9a5f79891af876
1 parent
01d81329d1
Exists in
master
and in
6 other branches
update code
Showing 1 changed file with 15 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/RiskReportFacade.java
View file @
7e23046
| ... | ... | @@ -397,8 +397,22 @@ | 
| 397 | 397 | configData(bs, slaveBasicConfigMap, allPatientCount); | 
| 398 | 398 | } | 
| 399 | 399 | } | 
| 400 | + List<RiskReportResult> datas = new ArrayList<>(); | |
| 401 | + if (CollectionUtils.isNotEmpty(results)) | |
| 402 | + { | |
| 403 | + for (RiskReportResult result : datas) | |
| 404 | + { | |
| 405 | + if (result.getRiskCount() == 0) | |
| 406 | + { | |
| 407 | + continue; | |
| 408 | + } | |
| 409 | + datas.add(result); | |
| 410 | + } | |
| 411 | + } | |
| 412 | + | |
| 413 | + | |
| 400 | 414 | return new BaseListResponse() | 
| 401 | - .setErrormsg("成功").setErrorcode(ErrorCodeConstants.SUCCESS).setData(results); | |
| 415 | + .setErrormsg("成功").setErrorcode(ErrorCodeConstants.SUCCESS).setData(datas); | |
| 402 | 416 | } | 
| 403 | 417 | |
| 404 | 418 | //无层级关系 |