用户数据统计功能代码开发
This commit is contained in:
@@ -5,6 +5,8 @@ import com.sky.entity.User;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
@Mapper
|
||||
public interface UserMapper {
|
||||
/**
|
||||
@@ -27,4 +29,12 @@ public interface UserMapper {
|
||||
|
||||
@Select("select * from user where id = #{id}")
|
||||
User getById(Long userId);
|
||||
|
||||
|
||||
/**
|
||||
* 根据动态条件统计用户数量
|
||||
* @param map
|
||||
* @return
|
||||
*/
|
||||
Integer countByMap(Map map);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user