|
|
|
@ -15,10 +15,10 @@ public interface UserMapper {
|
|
|
|
|
@Select("select * from user where username=#{username}")
|
|
|
|
|
User queryUserByusername(String username);
|
|
|
|
|
|
|
|
|
|
@Insert("insert into user values(#{username},#{password},#{kind})")
|
|
|
|
|
@Insert("insert into user values(#{username},#{password},0)")
|
|
|
|
|
int InsertUser(User user);
|
|
|
|
|
@Delete("delete from user where username=#{username}")
|
|
|
|
|
int deleteUserByName(String username);
|
|
|
|
|
@Select("select * from user")
|
|
|
|
|
@Select("select * from user where userstatus=0")
|
|
|
|
|
User[] queryAllUser();
|
|
|
|
|
}
|
|
|
|
|