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.PortalBizSystem;
import org.apache.ibatis.annotations.Param;

/**
 * @Author: Cola
 * @Date: 2021/08/25/10:57
 * @Description:
 **/
public interface PortalBizSystemDao extends BaseMapper<PortalBizSystem> {

    IPage<PortalBizSystem> getAuthUserBySystemCode(IPage<PortalBizSystem> convert2IPage, @Param(Constants.WRAPPER)Wrapper<PortalBizSystem> convert2Wrapper);

    void deleteBySystemCode(@Param(value = "systemCode") String systemCOde);

    int updateSystem(PortalBizSystem portalBizSystem);

    IPage<PortalBizSystem> selectData(IPage<PortalBizSystem> convert2IPage, @Param(value = "isAdmin")boolean isAdmin,@Param(value = "userId") String userId,@Param(value = "sysCode") String sysCode,@Param(value = "orderFields") String orderFields);
}
