From ef7a1288d3671f2b8610d7d7da06d8923fb4ca7a Mon Sep 17 00:00:00 2001 From: yujian <yujian@163.com> Date: 星期四, 14 五月 2020 19:27:07 +0800 Subject: [PATCH] 查询上级id --- fanli/src/main/java/com/yeshi/fanli/service/impl/msg/MsgExtraServiceImpl.java | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/msg/MsgExtraServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/msg/MsgExtraServiceImpl.java index 9cccd32..3f831ec 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/impl/msg/MsgExtraServiceImpl.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/msg/MsgExtraServiceImpl.java @@ -34,4 +34,14 @@ } } + + @Override + public void deleteByPidAndType(Long rid, String type) { + MsgExtra msgExtra = msgExtraMapper.getByRidAndType(rid, type); + if (msgExtra == null) { + return; + } + msgExtraMapper.deleteByPrimaryKey(msgExtra.getId()); + } + } -- Gitblit v1.8.0