package com.sptg.estate.biz.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.sptg.estate.api.dto.UserDto;
import com.sptg.estate.api.entity.ThirdUser;
import com.sptg.estate.api.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * title: UserMapper
 * package: com.sptg.estate.biz.mapper
 * description: 住户 DAO接口
 *
 *             
 *                 
 */
public interface ThirdUserMapper extends BaseMapper<ThirdUser> {

    /**
     * 功能描述:根据条件查询住户
     * @param userDto 住户业务对象
     * @param wrapper 查询条件
     * @return User
     *
     *
     */
    User findUserByCondition(@Param(value = "dto") UserDto userDto, @Param(value = "ew") Wrapper<User> wrapper);

    /**
     * 功能描述:删除住户人脸
     * @param user 住户
     * @return boolean
     *
     *
     */
    int deleteUserFaceImage(@Param(value = "user") User user);

    /**
     * 功能描述:分页查询住户
     * @param user 查询条件
     * @param page 分页
     * @return List<User>
     *
     *
     */
    List<User> getUserPage(@Param(value = "user") UserDto user, @Param(value = "page") Pagination page);


    /**
     * 功能描述:分页查询住户
     * @param user 查询条件
     * @return page 分页
     *
     *
     */
    List<User> showUserList(@Param(value = "user") UserDto user, @Param(value = "page") Pagination page);




}
