update BaseMapper.page
This commit is contained in:
@@ -2,6 +2,7 @@ package com.imyeyu.api.modules.common.mapper;
|
||||
|
||||
import com.imyeyu.api.modules.common.entity.Comment;
|
||||
import com.imyeyu.api.modules.common.vo.comment.CommentView;
|
||||
import com.imyeyu.spring.bean.Page;
|
||||
import com.imyeyu.spring.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
import org.apache.ibatis.annotations.Update;
|
||||
@@ -18,10 +19,10 @@ import java.util.List;
|
||||
public interface CommentMapper extends BaseMapper<Comment, Long> {
|
||||
|
||||
@Override
|
||||
long count();
|
||||
long countByPage(Page page);
|
||||
|
||||
@Override
|
||||
List<Comment> list(long offset, int limit);
|
||||
List<Comment> listByPage(Page page);
|
||||
|
||||
@Select("SELECT * FROM comment WHERE id = #{id}" + NOT_DELETE)
|
||||
Comment select(Long id);
|
||||
|
||||
@@ -14,14 +14,6 @@ import java.util.List;
|
||||
*/
|
||||
public interface IconMapper extends BaseMapper<Icon, Long> {
|
||||
|
||||
@Select("SELECT COUNT(1) FROM icon" + NOT_DELETE)
|
||||
@Override
|
||||
long count();
|
||||
|
||||
@Select("SELECT * FROM icon LIMIT #{offset}, #{limit}" + NOT_DELETE)
|
||||
@Override
|
||||
List<Icon> list(long offset, int limit);
|
||||
|
||||
@Select("SELECT * FROM icon WHERE 1 = 1" + NOT_DELETE)
|
||||
List<Icon> listAll();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user