You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
628 B
26 lines
628 B
package service.impl;
|
|
|
|
import dao.AdminDao;
|
|
import dao.impl.AdminDaoImpl;
|
|
import domain.Admin;
|
|
import service.AdminService;
|
|
|
|
public class AdminServiceImpl implements AdminService {
|
|
private AdminDao dao = new AdminDaoImpl();
|
|
|
|
@Override
|
|
public Admin login(Admin admin) {
|
|
return dao.findAdminidAndPassword(admin.getA_id(),admin.getA_password());
|
|
}
|
|
|
|
@Override
|
|
public void updatePassword(String adminid, String newpassword) {
|
|
dao.updatePassword(adminid,newpassword);
|
|
}
|
|
|
|
@Override
|
|
public Admin findAdminById(Admin admin) {
|
|
return dao.findAdminById(admin.getA_id());
|
|
}
|
|
}
|