Commit 0fec7d009e812a7e5d4fc29be8b561b11230d3b9
1 parent
c8cecb890b
Exists in
master
and in
2 other branches
修改高危孕妇管理列表查询报错的bug
Showing 1 changed file with 4 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/worker/WorkHR.java
View file @
0fec7d0
... | ... | @@ -98,7 +98,10 @@ |
98 | 98 | |
99 | 99 | //所有数据 |
100 | 100 | List<BasicConfig> basicConfigList = basicConfigService.queryBasicConfig(basicConfigQuery); |
101 | - riskPatientsResult.setLiveType(basicConfigList.get(0).getName()); | |
101 | + if(CollectionUtils.isNotEmpty(basicConfigList)){ | |
102 | + riskPatientsResult.setLiveType(basicConfigList.get(0).getName()); | |
103 | + } | |
104 | + | |
102 | 105 | } |
103 | 106 | |
104 | 107 | if (StringUtils.isNotEmpty(patients.getFirstCheckId())) { |