Commit 5ffe02de7ad94a3570c23b3103866837123e8c25
1 parent
7aad119e5b
Exists in
master
and in
8 other branches
配置接口修改
Showing 1 changed file with 4 additions and 6 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/SmsConfigFacade.java
View file @
5ffe02d
... | ... | @@ -211,14 +211,13 @@ |
211 | 211 | SmsConfigQuery query = new SmsConfigQuery(); |
212 | 212 | query.setYn(YnEnums.YES.getId()); |
213 | 213 | query.setHospitalId(hid); |
214 | - SmsConfigResult result = new SmsConfigResult(); | |
215 | - | |
214 | + SmsConfigResult sr = new SmsConfigResult(); | |
216 | 215 | List<SmsConfigModel> smsmodels = smsConfigService.querySmsConfigByHid(query); |
217 | 216 | if (CollectionUtils.isNotEmpty(smsmodels)) |
218 | 217 | { |
219 | 218 | SmsConfigModel model = smsmodels.get(0); |
220 | - SmsConfigResult sr = new SmsConfigResult(); | |
221 | 219 | |
220 | + | |
222 | 221 | List<Map> deptsPrefixs = JsonUtil.toList(model.getDeptPrefix(), Map.class); |
223 | 222 | if (CollectionUtils.isNotEmpty(deptsPrefixs)) |
224 | 223 | { |
225 | 224 | |
226 | 225 | |
... | ... | @@ -286,11 +285,10 @@ |
286 | 285 | list.add(map); |
287 | 286 | } |
288 | 287 | |
289 | - result.setDeptPrefix(list); | |
288 | + sr.setDeptPrefix(list); | |
290 | 289 | } |
291 | - | |
292 | 290 | BaseObjectResponse objectResponse = new BaseObjectResponse(); |
293 | - objectResponse.setData(result); | |
291 | + objectResponse.setData(sr); | |
294 | 292 | objectResponse.setErrorcode(ErrorCodeConstants.SUCCESS); |
295 | 293 | objectResponse.setErrormsg("成功"); |
296 | 294 |