Commit 598173b2e7b0058ef4e99b512a2643d35e964c9a
1 parent
7b71552431
Exists in
master
and in
8 other branches
update code
Showing 3 changed files with 13 additions and 3 deletions
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/dal/ISmsTemplateDao.java
View file @
598173b
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/dal/impl/SmsTemplateDaoImpl.java
View file @
598173b
... | ... | @@ -33,5 +33,12 @@ |
33 | 33 | public int queryBabyManageCount(MongoQuery mongoQuery) { |
34 | 34 | return (int) count(mongoQuery.convertToMongoQuery()); |
35 | 35 | } |
36 | + | |
37 | + @Override | |
38 | + public void deleteTempById(String id) { | |
39 | + MongoCondition condition = MongoCondition.newInstance(); | |
40 | + condition = condition.and("id", id, MongoOper.IS); | |
41 | + delete(condition.toMongoQuery().convertToMongoQuery()); | |
42 | + } | |
36 | 43 | } |
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/service/SmsTemplateService.java
View file @
598173b
... | ... | @@ -40,9 +40,10 @@ |
40 | 40 | } |
41 | 41 | |
42 | 42 | public void deleteTempById(String id) { |
43 | - SmsTemplateModel model = new SmsTemplateModel(); | |
44 | - model.setYn(YnEnums.NO.getId()); | |
45 | - smsTemplateDao.updateSmsTemplate(model,id); | |
43 | +// SmsTemplateModel model = new SmsTemplateModel(); | |
44 | +// model.setYn(YnEnums.NO.getId()); | |
45 | +// smsTemplateDao.updateSmsTemplate(model,id); | |
46 | + smsTemplateDao.deleteTempById(id); | |
46 | 47 | } |
47 | 48 | } |