package com.gkhy.safePlatform.account.repository; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.gkhy.safePlatform.account.entity.enterprise.DepartmentInfo; import com.gkhy.safePlatform.account.entity.enterprise.DepartmentInfoDO; import com.gkhy.safePlatform.account.enums.DepartmentStatusEnum; import org.springframework.stereotype.Repository; import java.util.List; @Repository public interface DepartmentInfoRepository extends BaseMapper { List getDepartmentListByStatus(Byte status); int insertDepartmentInfo(DepartmentInfo departmentInfo); DepartmentInfo getDepartmentInfoById(Long id); List listDepartmentByParentId(Long parentId); int updateDepartmentInfo(DepartmentInfo departmentInfo); DepartmentInfoDO getDepartmentInfoDOById(Long id); DepartmentInfoDO getParentDepartmentInfoDOByDepId(Long depId); List listSubDepIdsByParentId(Long depId); }