用户数据统计功能代码开发

This commit is contained in:
zvv
2026-04-06 18:34:48 +08:00
parent b469466854
commit 77ffe62c8d
5 changed files with 105 additions and 0 deletions

View File

@@ -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);
}