完成收藏功能针对topic的实现 (#456)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user