1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
| package com.whyc.mapper;
|
| import com.whyc.mapper.CustomMapper;
| import com.whyc.pojo.UserInf;
| import org.apache.ibatis.annotations.Param;
|
| import java.util.List;
|
| public interface UserInfMapper extends CustomMapper<UserInf> {
| //查询密码
| String selectSnId(String uname);
| //判断是否存在普通用户(uid>100),若无,初始为1001
| int judgeUname();
| //查询所有用户信息
| List<UserInf> getAllUser();
| //查询100~1000中最大的uid
| String getIn1000();
| //创建100~1000的id表,不存在则创建
| void createNumber();
| //判断表是否存在
| String existTable();
| //插入默认数据
| void setUnumber(@Param("sql") String sql);
| //查询最大的uid
| String getMaxUid();
| }
|
|