⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 employeeservice.java

📁 固定资产管理系统包括一个基本的部分
💻 JAVA
字号:
package com.shenlong.assetmanage.service;

import java.sql.SQLException;
import java.util.List;

import com.shenlong.assetmanage.dao.EmployeeDao;
import com.shenlong.assetmanage.daoImplSQLserver.EmployeeDaoImpl;
import com.shenlong.assetmanage.domain.Employee;

public class EmployeeService {
    
	private EmployeeDao employeedao=new EmployeeDaoImpl();
	public int saveNewEmp (Employee emp) throws SQLException{
		return employeedao.saveNewEmp(emp);
	}
	
	
	public int getEmployeeCountByName(String empName) throws SQLException{
		return employeedao.getEmployeeCountByName(empName);
	}
	
	
	public List<Employee> queryEmployeeByName(String empName,int currPage, int pageSize) throws SQLException{
		return employeedao.queryEmployeeByName(empName, currPage, pageSize);
	}
	
	
	public int modifyEmployee(Employee employee) throws SQLException{
		return employeedao.modifyEmployee(employee);
	}
	
	
	public int deleteEmployeeById(int id) throws SQLException{
		return employeedao.deleteEmployeeById(id);
	}
	
	
	
	public List<Employee> getAllEmployees() throws SQLException{
		return employeedao.getAllEmployees();
	}
	public Employee queryEmployeeById(int id) throws SQLException{
		return employeedao.queryEmployeeById(id);
	}
	
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -