package com.doumee.service.system;
|
|
import com.baomidou.mybatisplus.core.conditions.Wrapper;
|
import com.doumee.dao.system.dto.QuerySystemDepartmentDTO;
|
import com.doumee.dao.system.model.SystemDepartment;
|
import com.doumee.dao.system.vo.SystemDepartmentListVO;
|
|
import java.util.List;
|
|
/**
|
* Service定义
|
* @author Eva.Caesar Liu
|
* @date 2023/03/21 14:49
|
*/
|
public interface SystemDepartmentService {
|
|
/**
|
* 创建
|
* @author Eva.Caesar Liu
|
* @date 2023/03/21 14:49
|
*/
|
Integer create(SystemDepartment systemDepartment);
|
|
/**
|
* 主键删除
|
* @author Eva.Caesar Liu
|
* @date 2023/03/21 14:49
|
*/
|
void deleteById(Integer id);
|
|
/**
|
* 批量主键删除
|
* @author Eva.Caesar Liu
|
* @date 2023/03/21 14:49
|
*/
|
void deleteByIdInBatch(List<Integer> ids);
|
|
/**
|
* 主键更新
|
* @author Eva.Caesar Liu
|
* @date 2023/03/21 14:49
|
*/
|
void updateById(SystemDepartment systemDepartment);
|
|
/**
|
* 批量主键更新
|
* @author Eva.Caesar Liu
|
* @date 2023/03/21 14:49
|
*/
|
void updateByIdInBatch(List<SystemDepartment> systemDepartments);
|
|
/**
|
* 主键查询
|
* @author Eva.Caesar Liu
|
* @date 2023/03/21 14:49
|
*/
|
SystemDepartment findById(Integer id);
|
|
/**
|
* 根据ID集查询
|
* @author Eva.Caesar Liu
|
* @date 2023/03/21 14:49
|
*/
|
List<SystemDepartment> findByIds(List<Integer> ids);
|
|
/**
|
* 条件查询单条记录
|
* @author Eva.Caesar Liu
|
* @date 2023/03/21 14:49
|
*/
|
SystemDepartment findOne(SystemDepartment systemDepartment);
|
|
/**
|
* 条件查询单条记录
|
* @author Eva.Caesar Liu
|
* @date 2023/03/21 14:49
|
*/
|
SystemDepartment findOne(Wrapper<SystemDepartment> wrapper);
|
|
/**
|
* 条件查询
|
* @author Eva.Caesar Liu
|
* @date 2023/03/21 14:49
|
*/
|
List<SystemDepartmentListVO> findList(QuerySystemDepartmentDTO dto);
|
|
/**
|
* 条件查询
|
* @param wrapper
|
* @return
|
*/
|
List<SystemDepartment> findList(Wrapper<SystemDepartment> wrapper);
|
|
/**
|
* 条件统计
|
* @author Eva.Caesar Liu
|
* @date 2023/03/21 14:49
|
*/
|
long count(SystemDepartment systemDepartment);
|
|
/**
|
* 获取子孙部门ID集
|
* @author Eva.Caesar Liu
|
* @date 2023/03/21 14:49
|
*/
|
List<Integer> findChildren(Integer departmentId);
|
}
|