@ -0,0 +1,67 @@
|
||||
package com.service;
|
||||
|
||||
import com.entity.Department;
|
||||
import com.utils.Page;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName IDeptService
|
||||
* @Description TODO
|
||||
* @Author YHT
|
||||
* @Date 2021/5/30 16:01
|
||||
*/
|
||||
public interface IDeptService {
|
||||
/**
|
||||
* 查询部门所有信息
|
||||
* @return
|
||||
*/
|
||||
List<Department> findAllDepartment();
|
||||
|
||||
/**
|
||||
* 添加部门
|
||||
* @param department
|
||||
*/
|
||||
void addDept(Department department);
|
||||
|
||||
/**
|
||||
* 根据部门名称查找部门
|
||||
* @param deptName
|
||||
* @param page
|
||||
* @return
|
||||
*/
|
||||
List<Department> findDeptByName(String deptName, Page page);
|
||||
|
||||
/**
|
||||
* 获取记录总数
|
||||
* @return
|
||||
*/
|
||||
int getDeptTotal();
|
||||
|
||||
/**
|
||||
* 获取所有部门信息
|
||||
* @param page
|
||||
* @return
|
||||
*/
|
||||
List<Department> listDept(Page page);
|
||||
|
||||
/**
|
||||
* 根据id查找部门
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
Department findDeptById(int id);
|
||||
|
||||
/**
|
||||
* 修改部门信息
|
||||
* @param department
|
||||
*/
|
||||
void modifyDept(Department department);
|
||||
|
||||
/**
|
||||
* 删除部门信息
|
||||
* @param id
|
||||
*/
|
||||
void deleteDept(int id);
|
||||
|
||||
}
|
@ -0,0 +1,62 @@
|
||||
package com.service;
|
||||
|
||||
import com.entity.Employee;
|
||||
import com.utils.Page;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @ClassName IEmpServoce
|
||||
* @Description TODO
|
||||
* @Author YHT
|
||||
* @Date 2021/7/9 10:41
|
||||
*/
|
||||
public interface IEmpService {
|
||||
/**
|
||||
* 查找所有员工信息
|
||||
* @param page
|
||||
* @return
|
||||
*/
|
||||
List<Employee> listEmp(Page page);
|
||||
|
||||
/**
|
||||
* 获取记录总数
|
||||
* @return
|
||||
*/
|
||||
int getEmpTotal();
|
||||
|
||||
/**
|
||||
* 根据条件查找员工
|
||||
* @param map
|
||||
* @return
|
||||
*/
|
||||
List<Employee> searchEmp(Map<String, Object> map);
|
||||
|
||||
/**
|
||||
* 添加员工
|
||||
* @param employee
|
||||
*/
|
||||
void addEmp(Employee employee);
|
||||
|
||||
/**
|
||||
* 根据id查找员工
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
Employee selectEmpById(int id);
|
||||
|
||||
/**
|
||||
* 修改员工信息
|
||||
* @param employee
|
||||
*/
|
||||
void modifyEmp(Employee employee);
|
||||
|
||||
/**
|
||||
* 删除员工信息
|
||||
* @param id
|
||||
*/
|
||||
void deleteEmp(int id);
|
||||
|
||||
|
||||
}
|
@ -1,5 +0,0 @@
|
||||
package com.service;
|
||||
|
||||
|
||||
public interface IUserService {
|
||||
}
|
@ -0,0 +1,42 @@
|
||||
package com.service;
|
||||
|
||||
import com.entity.Visitor;
|
||||
import com.utils.Page;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName IVisitorService
|
||||
* @Description TODO
|
||||
* @Author YHT
|
||||
* @Date 2021/7/9 21:47
|
||||
*/
|
||||
public interface IVisitorService {
|
||||
/**
|
||||
* 查找所有访客信息
|
||||
* @param page
|
||||
* @return
|
||||
*/
|
||||
List<Visitor> listVisitor(Page page);
|
||||
|
||||
/**
|
||||
* 获取记录总数
|
||||
* @return
|
||||
*/
|
||||
int getVisitorTotal();
|
||||
|
||||
/**
|
||||
* 添加访客
|
||||
* @param visitor
|
||||
*/
|
||||
void addVisitor(Visitor visitor);
|
||||
|
||||
/**
|
||||
* 根据姓名查找访客
|
||||
* @param name
|
||||
* @param page
|
||||
* @return
|
||||
*/
|
||||
List<Visitor> searchByName(String name, Page page);
|
||||
|
||||
}
|
Loading…
Reference in new issue