package com.hotent.portal.persistence.dao;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.hotent.portal.model.PortalBizSystemAuth;
import com.hotent.portal.model.PortalBizSystemOrgAuth;
import com.hotent.uc.api.impl.model.Org;
import com.hotent.uc.api.impl.model.UserFacade;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 *  Mapper 接口
 *
 * @company 广州宏天软件股份有限公司
 * @author cola
 * @since 2021-12-03
 */
public interface PortalBizSystemOrgAuthDao extends BaseMapper<PortalBizSystemOrgAuth> {
    IPage<Org> getOrgAuthSystem(IPage<PortalBizSystemOrgAuth> page, @Param(Constants.WRAPPER) Wrapper<PortalBizSystemOrgAuth> convert2Wrapper, @Param("sysCode") String sysCode, @Param("type") String type);


    IPage<UserFacade> getOrgAuthSystemUser(IPage<PortalBizSystemOrgAuth> page, @Param(Constants.WRAPPER) Wrapper<PortalBizSystemOrgAuth> convert2Wrapper, @Param("sysCode") String sysCode, @Param("type") String type);
}
