package com.ruoyi.project.dc.securityType.mapper;
|
|
import java.util.List;
|
import com.ruoyi.project.dc.securityType.domain.SecurityType;
|
import com.ruoyi.project.system.dept.domain.Dept;
|
import org.apache.ibatis.annotations.Param;
|
|
/**
|
* 安全体系文件分类Mapper接口
|
*
|
* @author wm
|
* @date 2020-12-09
|
*/
|
public interface SecurityTypeMapper
|
{
|
/**
|
* 查询安全体系文件分类
|
*
|
* @param securityTypeId 安全体系文件分类ID
|
* @return 安全体系文件分类
|
*/
|
SecurityType selectSecurityTypeById(Long securityTypeId);
|
|
/**
|
* 查询安全体系文件分类列表
|
*
|
* @param securityType 安全体系文件分类
|
* @return 安全体系文件分类集合
|
*/
|
List<SecurityType> selectSecurityTypeList(SecurityType securityType);
|
|
/**
|
* 新增安全体系文件分类
|
*
|
* @param securityType 安全体系文件分类
|
* @return 结果
|
*/
|
int insertSecurityType(SecurityType securityType);
|
|
/**
|
* 修改安全体系文件分类
|
*
|
* @param securityType 安全体系文件分类
|
* @return 结果
|
*/
|
int updateSecurityType(SecurityType securityType);
|
|
/**
|
* 删除安全体系文件分类
|
*
|
* @param securityTypeId 安全体系文件分类ID
|
* @return 结果
|
*/
|
int deleteSecurityTypeById(Long securityTypeId);
|
|
/**
|
* 批量删除安全体系文件分类
|
*
|
* @param securityTypeIds 需要删除的数据ID
|
* @return 结果
|
*/
|
int deleteSecurityTypeByIds(String[] securityTypeIds);
|
|
|
|
/**
|
* 修改子元素关系
|
*
|
* @param types 子元素
|
* @return 结果
|
*/
|
int updateTypeChildren(@Param("types") List<SecurityType> types);
|
|
|
/**
|
* 根据ID查询所有子分类
|
*
|
* @param typeId 部门ID
|
* @return 部门列表
|
*/
|
List<Dept> selectChildrenTypeById(Long typeId);
|
}
|