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


import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.iocoder.yudao.module.system.controller.admin.reservation.vo.RegistrationPageReqVO;
import cn.iocoder.yudao.module.system.controller.admin.reservation.vo.RegistrationRespVO;
import cn.iocoder.yudao.module.system.dal.dataobject.biz.ElderlySyntheticAbilityDO;
import cn.iocoder.yudao.module.system.dal.dataobject.reservation.VisitRegistrationDO;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * 来访登记 Mapper
 *
 * @author 系统管理员
 */
@Mapper
public interface VisitRegistrationMapper extends BaseMapperX<VisitRegistrationDO> {
    List<RegistrationRespVO> getRegistrationPage(Page<RegistrationRespVO> page,@Param("params") RegistrationPageReqVO pageReqVO);

//    default PageResult<VisitRegistrationDO> selectPage(RegistrationPageReqVO reqVO) {
//        return selectPage(reqVO, new LambdaQueryWrapperX<VisitRegistrationDO>()
//                .eqIfPresent(VisitRegistrationDO::getPurposeVisit, reqVO.getPurposeVisit())
//                .betweenIfPresent(VisitRegistrationDO::getVisitingTime, reqVO.getVisitingTime())
//                .likeIfPresent(VisitRegistrationDO::getVisitorName, reqVO.getVisitorName())
//                .eqIfPresent(VisitRegistrationDO::getPhone, reqVO.getPhone())
//                .eqIfPresent(VisitRegistrationDO::getBelongings, reqVO.getBelongings())
//                .eqIfPresent(VisitRegistrationDO::getInformationChannel, reqVO.getInformationChannel())
//                .eqIfPresent(VisitRegistrationDO::getDescribe, reqVO.getDescribe())
//                .betweenIfPresent(VisitRegistrationDO::getLeaveTime, reqVO.getLeaveTime())
//                .betweenIfPresent(VisitRegistrationDO::getCreateTime, reqVO.getCreateTime())
//                .eqIfPresent(VisitRegistrationDO::getOrgType, reqVO.getOrgType())
//                .orderByDesc(VisitRegistrationDO::getCreateTime));
//    }

}