修改 单元测试
This commit is contained in:
@@ -36,13 +36,6 @@ public interface CountService {
|
||||
*/
|
||||
long getTagsCount();
|
||||
|
||||
/**
|
||||
* 获取留言数量
|
||||
*
|
||||
* @return 留言数量
|
||||
*/
|
||||
long getLeaveMessageCount();
|
||||
|
||||
/**
|
||||
* 获取用户量
|
||||
*
|
||||
|
||||
@@ -29,7 +29,7 @@ public class CountServiceImpl implements CountService {
|
||||
|
||||
@Override
|
||||
public long getCommentCount() {
|
||||
return commentMapper.countByType(true);
|
||||
return commentMapper.count();
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -47,11 +47,6 @@ public class CountServiceImpl implements CountService {
|
||||
return tagMapper.count();
|
||||
}
|
||||
|
||||
@Override
|
||||
public long getLeaveMessageCount() {
|
||||
return commentMapper.countByType(false);
|
||||
}
|
||||
|
||||
@Override
|
||||
public long getUserCount() {
|
||||
return userMapper.count();
|
||||
|
||||
Reference in New Issue
Block a user