From cdc3690a0354e01b44852f4c9da3b7204128d2eb Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期五, 13 八月 2021 18:46:36 +0800 Subject: [PATCH] 增加苹果内购回调日志,兼容苹果内购 --- src/main/java/com/yeshi/buwan/dao/base/MongodbBaseDao.java | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/yeshi/buwan/dao/base/MongodbBaseDao.java b/src/main/java/com/yeshi/buwan/dao/base/MongodbBaseDao.java index 6be8dbb..8759407 100644 --- a/src/main/java/com/yeshi/buwan/dao/base/MongodbBaseDao.java +++ b/src/main/java/com/yeshi/buwan/dao/base/MongodbBaseDao.java @@ -88,6 +88,15 @@ mongoTemplate.remove(query, getEntityClass()); } + public void delete(Query query) { + mongoTemplate.remove(query, getEntityClass()); + } + + public void deleteByPrimaryKey(Object id) { + Query query = Query.query(Criteria.where("_id").is(id)); + mongoTemplate.remove(query, getEntityClass()); + } + @SuppressWarnings("unchecked") protected Class<T> getEntityClass() { Class<T> tClass = (Class<T>) ((ParameterizedType) getClass().getGenericSuperclass()) -- Gitblit v1.8.0