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 19b6c37b4fbc19f6644aaf90858cc817dc9b0525..36a2d5982cf71121f3a702aef921b2014fbe6f4f 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); + } + }