package com.gic.haoban.manage.service.dao.mapper.hm;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.gic.haoban.manage.api.dto.qdto.hm.WxUserAddLogSearchQDTO;
import com.gic.haoban.manage.service.entity.hm.TabWxUserAddLog;

/**
 * 
 * @ClassName: TabHaobanWxUserAddLogMapper
 * @Description: TODO
 * @Author 徐高华
 * @Date 2022年07月04日 14:07:32
 * @Modify
 * @CopyRight 
 */
public interface WxUserAddLogMapper {

    /**
     * 新增
    * @Title: insert 
    * @Description: TODO
    * @Param @param TabHaobanWxUserAddLog
     */
    public int insert(TabWxUserAddLog entity);

    public int updateMemberInfo(TabWxUserAddLog entity);

    /**
     * 
    * @Title: listAllForDel
    * @Description: TODO(这里用一句话描述这个方法的作用)
    * @author xugh
    * @param externalUserid
    * @return
    * @throws
     */
    public List<TabWxUserAddLog> listAllForDel(String externalUserid);

    TabWxUserAddLog getForTask(@Param("externalUserid") String externalUserid) ;

    /**
     * 
    * @Title: selectNewLog
    * @Description: 查询外部联系人最新添加的好友记录
    * @author xugh
    * @param externalUserid
    * @param wxUserId
    * @return
    * @throws
     */
    public TabWxUserAddLog selectNewLog(@Param("externalUserid") String externalUserid,
            @Param("staffId") String staffId);


    public TabWxUserAddLog listNewLog(@Param("externalUserid") String externalUserid,
                                        @Param("staffId") String staffId , @Param("friendClerkId")String friendClerkId);

    /**
     * 
    * @Title: listAllForDel
    * @Description: TODO(这里用一句话描述这个方法的作用)
    * @author xugh
    * @param externalUserid
    * @return
    * @throws
     */
    public List<TabWxUserAddLog> listForPage(WxUserAddLogSearchQDTO qdto);

    /**
     *
     * @param externalUseridList
     * @return
     */
    public List<TabWxUserAddLog> listHalfDelTime(@Param("list")List<String> externalUseridList) ;

}