package com.doumee.service.system; 
 | 
  
 | 
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 2022/03/15 09:54 
 | 
 */ 
 | 
public interface SystemDepartmentService { 
 | 
  
 | 
    /** 
 | 
     * 创建 
 | 
     * @author Eva.Caesar Liu 
 | 
     * @date 2022/03/15 09:54 
 | 
     */ 
 | 
    Integer create(SystemDepartment systemDepartment); 
 | 
  
 | 
    /** 
 | 
     * 主键删除 
 | 
     * @author Eva.Caesar Liu 
 | 
     * @date 2022/03/15 09:54 
 | 
     */ 
 | 
    void deleteById(Integer id); 
 | 
  
 | 
    /** 
 | 
     * 批量主键删除 
 | 
     * @author Eva.Caesar Liu 
 | 
     * @date 2022/03/15 09:54 
 | 
     */ 
 | 
    void deleteByIdInBatch(List<Integer> ids); 
 | 
  
 | 
    /** 
 | 
     * 主键更新 
 | 
     * @author Eva.Caesar Liu 
 | 
     * @date 2022/03/15 09:54 
 | 
     */ 
 | 
    void updateById(SystemDepartment systemDepartment); 
 | 
  
 | 
    /** 
 | 
     * 批量主键更新 
 | 
     * @author Eva.Caesar Liu 
 | 
     * @date 2022/03/15 09:54 
 | 
     */ 
 | 
    void updateByIdInBatch(List<SystemDepartment> systemDepartments); 
 | 
  
 | 
    /** 
 | 
     * 主键查询 
 | 
     * @author Eva.Caesar Liu 
 | 
     * @date 2022/03/15 09:54 
 | 
     */ 
 | 
    SystemDepartment findById(Integer id); 
 | 
  
 | 
    /** 
 | 
     * 根据ID集查询 
 | 
     * @author Eva.Caesar Liu 
 | 
     * @date 2022/03/15 09:54 
 | 
     */ 
 | 
    List<SystemDepartment> findByIds(List<Integer> ids); 
 | 
  
 | 
    /** 
 | 
     * 条件查询单条记录 
 | 
     * @author Eva.Caesar Liu 
 | 
     * @date 2022/03/15 09:54 
 | 
     */ 
 | 
    SystemDepartment findOne(SystemDepartment systemDepartment); 
 | 
  
 | 
    /** 
 | 
     * 条件查询 
 | 
     * @author Eva.Caesar Liu 
 | 
     * @date 2022/03/15 09:54 
 | 
     */ 
 | 
    List<SystemDepartmentListVO> findList(QuerySystemDepartmentDTO dto); 
 | 
  
 | 
    /** 
 | 
     * 条件统计 
 | 
     * @author Eva.Caesar Liu 
 | 
     * @date 2022/03/15 09:54 
 | 
     */ 
 | 
    long count(SystemDepartment systemDepartment); 
 | 
  
 | 
    /** 
 | 
     * 获取子孙部门ID集 
 | 
     * @author Eva.Caesar Liu 
 | 
     * @date 2022/03/15 09:54 
 | 
     */ 
 | 
    List<Integer> findChildren(Integer departmentId); 
 | 
} 
 |