mirror of
https://github.com/FreeeBird/hotel.git
synced 2025-11-02 21:44:50 +08:00
完成UserService、UserMapper编写,通过单元测试
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
package cn.mafangui.hotel.mapper;
|
||||
|
||||
import cn.mafangui.hotel.entity.User;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Component
|
||||
public interface UserMapper {
|
||||
int deleteByPrimaryKey(Integer userId);
|
||||
@@ -16,4 +19,10 @@ public interface UserMapper {
|
||||
int updateByPrimaryKeySelective(User record);
|
||||
|
||||
int updateByPrimaryKey(User record);
|
||||
|
||||
User selectByUsernameAndPassword(@Param("username") String username,@Param("password") String password);
|
||||
|
||||
User selectByUsername(String username);
|
||||
|
||||
List<User> selectAll();
|
||||
}
|
||||
Reference in New Issue
Block a user