package com.skr.mdm.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.skr.mdm.bean.vo.admin.AdminVO;
import com.skr.mdm.entity.AuAdministratorDO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author nfq
 */
@Repository
public interface AuAdminDao extends BaseMapper<AuAdministratorDO> {

	/**
	 * 根据公司ID删除
	 * @param companyId 公司ID
	 */
	void deleteByCompanyId(@Param("companyId") Integer companyId);

	List<AdminVO> listAdmin(@Param("companyId") Integer companyId, @Param("searchType") Integer searchType,
							@Param("searchValue") String searchValue, @Param("adminLevel") Integer adminLevel);

}
