/*
 * Copyright (c) 2024 codvision.com All Rights Reserved.
 */

package com.codvision.basic.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.codvision.basic.entity.PersonAddressRelation;
import com.codvision.basic.entity.dto.PersonAddressRelationDTO;
import com.codvision.basic.entity.vo.PersonAddressRelationVO;
import com.codvision.webcore.bean.QueryPage;

import java.util.List;
import java.util.Map;

/**
 * @author KX
 */
public interface PersonAddressRelationService extends IService<PersonAddressRelation> {

    /**
     * 分页列表
     * @param queryPage 查询条件
     * @return 列表
     */
    IPage<PersonAddressRelationVO> getPageResult(QueryPage<Map<String, Object>> queryPage);

    /**
     * 添加
     * @param personAddressRelationDto 添加参数
     */
    void add(PersonAddressRelationDTO personAddressRelationDto);

    /**
     * 人员、房屋迁出
     * @param ids 主键集合
     */
    void moveOut(List<Integer> ids);
}
