/**
 * Copyright 2019 DH
 * All right reserved.
 * 项目名称: 运维系统
 * 创建日期:2023/11/9
 */
package org.springblade.modules.yjxt.business.resident.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springblade.core.mp.base.BaseServiceImpl;

import org.springblade.modules.yjxt.business.resident.dto.DangerAreaResidentInfoDTO;
import org.springblade.modules.yjxt.business.resident.entity.DangerAreaResidentInfoEntity;
import org.springblade.modules.yjxt.business.resident.mapper.DangerAreaResidentInfoMapper;
import org.springblade.modules.yjxt.business.resident.service.IDangerAreaResidentService;
import org.springblade.modules.yjxt.business.resident.vo.DangerAreaResidentInfoVO;
import org.springframework.stereotype.Service;

import java.util.List;

/***
 * Date:2023/11/9
 * Title:文件所属模块（必须填写）
 * Description：对本文件的详细描述，原则上不能少于30字
 * @author dylan
 * @version 1.0
 * Remark：认为有必要的其他信息
 */
@Service
public class DangerAreaResidentServiceImpl extends BaseServiceImpl<DangerAreaResidentInfoMapper, DangerAreaResidentInfoEntity> implements IDangerAreaResidentService {
    @Override
    public IPage<DangerAreaResidentInfoVO> selectPage(IPage<DangerAreaResidentInfoVO> page, DangerAreaResidentInfoDTO dto) {
        return page.setRecords(baseMapper.selectPage(page,dto));
    }

    @Override
    public long residentCount(DangerAreaResidentInfoDTO dto) {
        return baseMapper.residentCount(dto);
    }

    @Override
    public List<DangerAreaResidentInfoEntity> getFamilyMembers(DangerAreaResidentInfoDTO dto) {
        return baseMapper.getFamilyMembers(dto);
    }

    @Override
    public List<DangerAreaResidentInfoEntity> getFamilyPoints(DangerAreaResidentInfoDTO dto) {
        return baseMapper.getFamilyPoints(dto);
    }
}
