完成收藏功能针对topic的实现 (#456)

This commit is contained in:
Longmain
2021-01-14 23:52:08 +08:00
committed by GitHub
parent 04c716de05
commit 46d2a4e080
11 changed files with 229 additions and 43 deletions

View File

@@ -16,9 +16,9 @@ public class LitemallCollectService {
@Resource
private LitemallCollectMapper collectMapper;
public int count(int uid, Integer gid) {
public int count(int uid, byte type, Integer gid) {
LitemallCollectExample example = new LitemallCollectExample();
example.or().andUserIdEqualTo(uid).andValueIdEqualTo(gid).andDeletedEqualTo(false);
example.or().andUserIdEqualTo(uid).andTypeEqualTo(type).andValueIdEqualTo(gid).andDeletedEqualTo(false);
return (int) collectMapper.countByExample(example);
}