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

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yuchen.saas.park.api.dto.people.PropertyPeopleBuildManagerPageDTO;
import com.yuchen.saas.park.api.entity.park.people.SaasParkPropertyPeopleInfo;
import com.yuchen.saas.park.api.vo.people.PropertyPeopleBuildingManagerPageVO;
import com.yuchen.saas.park.api.vo.people.PropertyPeopleBuildingManagerWechatVO;
import org.apache.ibatis.annotations.Param;


/**
 * <p>
 * 物业人员信息表 Mapper 接口
 * </p>
 *
 * @author linyb
 * @since 2024-11-30
 */
public interface SaasParkPropertyPeopleInfoMapper extends BaseMapper<SaasParkPropertyPeopleInfo> {

    /**
     * 获取楼栋管家微信二维码
     * @param buildingId
     * @return
     */
    PropertyPeopleBuildingManagerWechatVO getBuildingManagerInfoByBuildingId(@Param("buildingId") Long buildingId);
    /**
     * 获取楼栋管家、楼栋管理员分页
     * @param dto
     * @return
     */
    IPage<PropertyPeopleBuildingManagerPageVO> getPage(@Param("page")IPage<SaasParkPropertyPeopleInfo> page,@Param("dto") PropertyPeopleBuildManagerPageDTO dto);
}
