/**
* Copyright 2018 人人开源 https://www.renren.io
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
package com.epmet.dao;
import com.epmet.commons.mybatis.dao.BaseDao;
import com.epmet.dto.RegisterRelationDTO;
import com.epmet.entity.RegisterRelationEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 注册关系表 用于统计客户网格的注册居民数
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-03-30
*/
@Mapper
public interface RegisterRelationDao extends BaseDao {
List getListByUserId(@Param("userId") String userId);
/**
* @Description 查询用户的首次注册网格Id
* @param userId
* @return
* @author wangc
* @date 2020.07.23 15:31
**/
RegisterRelationEntity selectRegisteredGridIdByUserId(@Param("userId") String userId);
RegisterRelationEntity selectRegisteredGridIdByUserIdAndCustomerId(@Param("userId") String userId, @Param("customerId")String customerId);
/**
* @Description 根据userId查询注册网格ID
* @Param userId
* @author zxc
* @date 2021/3/16 下午3:05
*/
String selectRegisterGridIdByUserId(@Param("userId")String userId);
/**
* @Description 居民注册关系
* @param userId
* @author zxc
* @date 2021/12/30 3:14 下午
*/
RegisterRelationDTO resiRelationInfo(@Param("userId")String userId);
}