Commit 15d20c267ea2886c7980376c737b4f0a6edaf936
1 parent
84730487b2
Exists in
master
and in
8 other branches
配置接口修改
Showing 1 changed file with 7 additions and 1 deletions
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/service/SmsConfigService.java
View file @
15d20c2
... | ... | @@ -4,6 +4,7 @@ |
4 | 4 | |
5 | 5 | import com.lyms.platform.common.enums.YnEnums; |
6 | 6 | import com.lyms.platform.common.utils.JsonUtil; |
7 | +import com.lyms.platform.common.utils.StringUtils; | |
7 | 8 | import com.lyms.platform.pojo.SmsConfigModel; |
8 | 9 | import com.lyms.platform.query.SmsConfigQuery; |
9 | 10 | import org.apache.commons.collections.CollectionUtils; |
... | ... | @@ -47,7 +48,12 @@ |
47 | 48 | List<SmsConfigModel> configs = querySmsConfigByHid(query); |
48 | 49 | if (CollectionUtils.isNotEmpty(configs)) |
49 | 50 | { |
50 | - List<Map> list = JsonUtil.toList(configs.get(0).getDeptPrefix(), Map.class); | |
51 | + List<Map> list = new ArrayList<>(); | |
52 | + if (configs.get(0) != null && StringUtils.isNotEmpty(configs.get(0).getDeptPrefix())) | |
53 | + { | |
54 | + list = JsonUtil.toList(configs.get(0).getDeptPrefix(), Map.class); | |
55 | + } | |
56 | + | |
51 | 57 | if (CollectionUtils.isNotEmpty(list)) |
52 | 58 | { |
53 | 59 | for (Map dept : list) |