![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/7882599fddf9b4e1e107c741cf1f07f2.png)
1.GlobalBiz 定义对employee的操作
package com.imooc.oa.biz;
import com.imooc.oa.entity.Employee;
public interface GlobalBiz {
Employee login(String sn, String password);
void changePassword(Employee employee);
}
2.Impl
package com.imooc.oa.biz.impl;
import com.imooc.oa.biz.GlobalBiz;
import com.imooc.oa.dao.EmployeeDao;
import com.imooc.oa.entity.Employee;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service("globalBiz")
public class GlobalBizImpl implements GlobalBiz {
@Autowired
private EmployeeDao employeeDao;
public Employee login(String sn, String password) {
Employee employee = employeeDao.select(sn);
if(employee!=null&&emp