package org.security.basicDataSync.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.security.basicDataSync.entity.DeptLevlSyncHistory;

/**
 * @author ：wzf
 * @since ：Created in 2022/8/26 9:28
 */
@Mapper
public interface DeptLevlSyncHistoryMapper extends BaseMapper<DeptLevlSyncHistory> {
	/**
	 * 根据角色名称获取角色id
	 * @param deptLeader 角色名称
	 * @return
	 */
	String getAimRoleId(@Param("deptLeader") String deptLeader);

	/**
	 * 获取直属上级机构编码
	 * @param instiEnc
	 * @return
	 */
	String getParentDeptCode(@Param("instiEnc") String instiEnc);
}
