package com.ruoyi.station.mapper;
|
|
import java.util.List;
|
import com.ruoyi.station.domain.MjDept;
|
import com.ruoyi.station.model.DeptUsersModel;
|
import org.apache.ibatis.annotations.Param;
|
import org.springframework.stereotype.Repository;
|
|
/**
|
* 部门Mapper接口
|
*
|
* @author ruoyi
|
* @date 2020-08-07
|
*/
|
@Repository
|
public interface MjDeptMapper
|
{
|
/**
|
* 查询部门
|
*
|
* @param id 部门ID
|
* @return 部门
|
*/
|
public MjDept selectMjDeptByIdorName(@Param("id") String id, @Param("deptName") String deptName);
|
|
/**
|
* 查询部门列表
|
*
|
* @param mjDept 部门
|
* @return 部门集合
|
*/
|
public List<MjDept> selectMjDeptList(MjDept mjDept);
|
|
/**
|
* 新增部门
|
*
|
* @param mjDept 部门
|
* @return 结果
|
*/
|
public int insertMjDept(MjDept mjDept);
|
|
/**
|
* 修改部门
|
*
|
* @param mjDept 部门
|
* @return 结果
|
*/
|
public int updateMjDept(MjDept mjDept);
|
|
/**
|
* 删除部门
|
*
|
* @param id 部门ID
|
* @return 结果
|
*/
|
public int deleteMjDeptById(String id);
|
|
/**
|
* 批量删除部门
|
*
|
* @param ids 需要删除的数据ID
|
* @return 结果
|
*/
|
public int deleteMjDeptByIds(String[] ids);
|
|
MjDept checkDeptNameUnique(String deptName, String deptParentId);
|
|
/**
|
* 根据部门父id获取部门信息
|
* @param deptParentId
|
* @return
|
*/
|
public List<DeptUsersModel> selectMjDeptListByDeptParentId(@Param("deptParentId") String deptParentId);
|
}
|