From 4343425c44cf884779beaf52c33c194afee72960 Mon Sep 17 00:00:00 2001 From: rusice Date: Thu, 6 Sep 2018 10:07:01 +0800 Subject: [PATCH] close #IMNNE --- .../litemall/db/service/LitemallCommentService.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallCommentService.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallCommentService.java index 19b6c37b..36a2d598 100644 --- a/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallCommentService.java +++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallCommentService.java @@ -104,4 +104,16 @@ public class LitemallCommentService { commentMapper.logicalDeleteByPrimaryKey(id); } + public int add(LitemallComment comment) { + return commentMapper.insertSelective(comment); + } + + public LitemallComment findById(Integer id) { + return commentMapper.selectByPrimaryKeySelective(id); + } + + public int updateById(LitemallComment comment) { + return commentMapper.updateByPrimaryKeySelective(comment); + } + } -- Gitee