完成房间类型接口编写,通过单元测试

This commit is contained in:
freeebird
2018-11-13 17:02:41 +08:00
parent 435e38198d
commit 8c14346247
14 changed files with 250 additions and 6 deletions

View File

@@ -11,5 +11,5 @@ public interface WorkerService {
Worker selectById(int workerId);
List<Worker> findAll();
List<Worker> selectByRole(String role);
Worker login(String username,String password);
Worker login(String username,String password,String role);
}

View File

@@ -45,7 +45,7 @@ public class WorkerServiceImpl implements WorkerService {
}
@Override
public Worker login(String username, String password) {
return workerMapper.selectByUsernameAndPassword(username,password);
public Worker login(String username, String password,String role) {
return workerMapper.selectByUsernameAndPassword(username,password,role);
}
}