Commit 681136d83706b9d68867d6073bda68bc73462d88
1 parent
7ae3156b25
Exists in
master
and in
6 other branches
消息模板
Showing 1 changed file with 14 additions and 14 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/SmsTemplateFacade.java
View file @
681136d
| ... | ... | @@ -27,8 +27,8 @@ |
| 27 | 27 | @Autowired |
| 28 | 28 | private SmsTemplateService smsTemplateService; |
| 29 | 29 | |
| 30 | - @Autowired | |
| 31 | - private OperateLogFacade operateLogFacade; | |
| 30 | +// @Autowired | |
| 31 | +// private OperateLogFacade operateLogFacade; | |
| 32 | 32 | |
| 33 | 33 | |
| 34 | 34 | @Autowired |
| ... | ... | @@ -56,11 +56,11 @@ |
| 56 | 56 | model.setCreated(list.get(0).getCreated()); |
| 57 | 57 | smsTemplateService.addSmsTemplate(model); |
| 58 | 58 | |
| 59 | - if (CollectionUtils.isNotEmpty(list)) | |
| 60 | - { | |
| 61 | - operateLogFacade.addModifyOptLog(userId, Integer.parseInt(hospitalId), list.get(0), model, OptActionEnums.UPDATE.getId(), | |
| 62 | - "更新模板"); | |
| 63 | - } | |
| 59 | +// if (CollectionUtils.isNotEmpty(list)) | |
| 60 | +// { | |
| 61 | +// operateLogFacade.addModifyOptLog(userId, Integer.parseInt(hospitalId), list.get(0), model, OptActionEnums.UPDATE.getId(), | |
| 62 | +// "更新模板"); | |
| 63 | +// } | |
| 64 | 64 | |
| 65 | 65 | BaseResponse objectResponse = new BaseResponse(); |
| 66 | 66 | objectResponse.setErrorcode(ErrorCodeConstants.SUCCESS); |
| 67 | 67 | |
| ... | ... | @@ -74,12 +74,12 @@ |
| 74 | 74 | * @return |
| 75 | 75 | */ |
| 76 | 76 | public BaseResponse addSmsTemplate(SmsTemplateRequest request,Integer userId) { |
| 77 | - String hospitalId = autoMatchFacade.getHospitalId(userId); | |
| 77 | + //String hospitalId = autoMatchFacade.getHospitalId(userId); | |
| 78 | 78 | SmsTemplateModel model = getSmsTemplateModel(request); |
| 79 | 79 | model.setCreated(new Date()); |
| 80 | 80 | model.setModified(new Date()); |
| 81 | 81 | SmsTemplateModel result = smsTemplateService.addSmsTemplate(model); |
| 82 | - operateLogFacade.addAddOptLog(userId, Integer.parseInt(hospitalId), result, OptActionEnums.ADD.getId(), "添加短信模板"); | |
| 82 | + //operateLogFacade.addAddOptLog(userId, Integer.parseInt(hospitalId), result, OptActionEnums.ADD.getId(), "添加短信模板"); | |
| 83 | 83 | BaseObjectResponse objectResponse = new BaseObjectResponse(); |
| 84 | 84 | objectResponse.setData(result.getId()); |
| 85 | 85 | objectResponse.setErrorcode(ErrorCodeConstants.SUCCESS); |
| ... | ... | @@ -338,11 +338,11 @@ |
| 338 | 338 | List<SmsTemplateModel> list = smsTemplateService.querySmsTemplates(tempQuery); |
| 339 | 339 | smsTemplateService.deleteTempById(id); |
| 340 | 340 | |
| 341 | - if (CollectionUtils.isNotEmpty(list)) | |
| 342 | - { | |
| 343 | - operateLogFacade.addDeleteOptLog(userId, Integer.parseInt(hospitalId), list.get(0), OptActionEnums.DELETE.getId(), | |
| 344 | - "删除模板"); | |
| 345 | - } | |
| 341 | +// if (CollectionUtils.isNotEmpty(list)) | |
| 342 | +// { | |
| 343 | +// operateLogFacade.addDeleteOptLog(userId, Integer.parseInt(hospitalId), list.get(0), OptActionEnums.DELETE.getId(), | |
| 344 | +// "删除模板"); | |
| 345 | +// } | |
| 346 | 346 | BaseResponse objectResponse = new BaseResponse(); |
| 347 | 347 | objectResponse.setErrorcode(ErrorCodeConstants.SUCCESS); |
| 348 | 348 | objectResponse.setErrormsg("成功"); |