package cn.iocoder.yudao.module.system.dal.mysql.tenant;

import java.util.*;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.module.system.dal.dataobject.tenant.EnterpriseInfoDO;
import org.apache.ibatis.annotations.Mapper;


/**
 * 企业信息 Mapper
 *
 * @author 系统管理员
 */
@Mapper
public interface EnterpriseInfoMapper extends BaseMapperX<EnterpriseInfoDO> {

//    default PageResult<EnterpriseInfoDO> selectPage(EnterpriseInfoPageReqVO reqVO) {
//        return selectPage(reqVO, new LambdaQueryWrapperX<EnterpriseInfoDO>()
//                .likeIfPresent(EnterpriseInfoDO::getEnterpriseName, reqVO.getEnterpriseName())
//                .eqIfPresent(EnterpriseInfoDO::getEnterpriseAbbreviation, reqVO.getEnterpriseAbbreviation())
//                .eqIfPresent(EnterpriseInfoDO::getAddress, reqVO.getAddress())
//                .eqIfPresent(EnterpriseInfoDO::getLogo, reqVO.getLogo())
//                .eqIfPresent(EnterpriseInfoDO::getIntroduction, reqVO.getIntroduction())
//                .eqIfPresent(EnterpriseInfoDO::getBusinessScope, reqVO.getBusinessScope())
//                .eqIfPresent(EnterpriseInfoDO::getScale, reqVO.getScale())
//                .eqIfPresent(EnterpriseInfoDO::getType, reqVO.getType())
//                .betweenIfPresent(EnterpriseInfoDO::getEstablishmentDate, reqVO.getEstablishmentDate())
//                .eqIfPresent(EnterpriseInfoDO::getCorporateJuridicalPerson, reqVO.getCorporateJuridicalPerson())
//                .eqIfPresent(EnterpriseInfoDO::getCorporateIdCard, reqVO.getCorporateIdCard())
//                .eqIfPresent(EnterpriseInfoDO::getCorporatePhone, reqVO.getCorporatePhone())
//                .eqIfPresent(EnterpriseInfoDO::getBusinessLicense, reqVO.getBusinessLicense())
//                .eqIfPresent(EnterpriseInfoDO::getUnifiedSocialCreditCode, reqVO.getUnifiedSocialCreditCode())
//                .eqIfPresent(EnterpriseInfoDO::getDetailedAddress, reqVO.getDetailedAddress())
//                .betweenIfPresent(EnterpriseInfoDO::getCreatedTime, reqVO.getCreatedTime())
//                .eqIfPresent(EnterpriseInfoDO::getCreatedBy, reqVO.getCreatedBy())
//                .orderByDesc(EnterpriseInfoDO::getId));
//    }

}