|
|
|
@ -11,9 +11,9 @@ import org.springframework.stereotype.Repository;
|
|
|
|
|
public interface UserMapper {
|
|
|
|
|
|
|
|
|
|
//通过username查询用户信息
|
|
|
|
|
@Select("select * from user_list where username=#{username}")
|
|
|
|
|
@Select("select * from user where username=#{username}")
|
|
|
|
|
User queryUserByusername(String username);
|
|
|
|
|
|
|
|
|
|
@Insert("insert into user_list values(#{username},#{password},#{kind})")
|
|
|
|
|
@Insert("insert into user values(#{username},#{password},#{kind})")
|
|
|
|
|
int InsertUser(User user);
|
|
|
|
|
}
|
|
|
|
|