package com.yuchen.saas.park.service.mapper.pldoor;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yuchen.saas.park.api.entity.pldoor.PlDoorUserPointSet;
import com.yuchen.saas.park.api.vo.pldoor.PlDoorUserPointSetVO;
import com.yuchen.saas.park.api.vo.request.PlDoorUserPointSetReq;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 人员登记配置 Mapper 接口
 * </p>
 *
 * @author miaoqs
 * @since 2024-04-08
 */
public interface PlDoorUserPointSetMapper extends BaseMapper<PlDoorUserPointSet> {

    Page<PlDoorUserPointSetVO> listByParam(Page<PlDoorUserPointSetReq> page, @Param("req") PlDoorUserPointSetReq req);

    /**
     * 分页 综合权限查询
     * @param page
     * @param req
     * @return
     */
    Page<PlDoorUserPointSetVO> pageByPower(Page<PlDoorUserPointSetReq> page, @Param("req") PlDoorUserPointSetReq req);

    /**
     * 设置有效期内
     */
    void checkInOfDate();

    /**
     * 设置过期
     */
    void checkOutOfDate();
}
