ChatlogDao.java 1.3 KB
package com.w1hd.zzhnc.dao;

import java.util.List;
import java.util.Set;

import org.apache.ibatis.annotations.Param;

import com.w1hd.zzhnc.model.Chatlog;
import com.w1hd.zzhnc.util.MyMapper;
import com.w1hd.zzhnc.vo.ChatLog_DistinctFansIdVO;
import com.w1hd.zzhnc.vo.Chatlog_Vo;

public interface ChatlogDao extends MyMapper<Chatlog> {

	List<Chatlog_Vo> getChatlogList(int page, int pagesize, @Param("replytype") Integer replytype,
			@Param("date1") String date1, @Param("date2") String date2, @Param("keyword") String keyword);

	Integer getChatlogCount(@Param("replytype") Integer replytype, @Param("date1") String date1,
			@Param("date2") String date2, @Param("keyword") String keyword);

	List<Chatlog_Vo> getChatLogListBySalesId(int page, int pagesize, @Param("ids") List<Integer> ids,
			@Param("fansid") Integer fansid);

	Integer getChatlogCountBySalesId(@Param("salesid") Integer salesid, @Param("fansid") Integer fansid);
	
	Set<Integer> getChatFansIdBySalesId(@Param("salesid") Integer salesid);
	
	List<ChatLog_DistinctFansIdVO> getChatListDistinctFansIdIn(@Param("ids") List<Integer> ids,@Param("salesid") Integer salesid);
	
	List<ChatLog_DistinctFansIdVO> getFansListForSale(@Param("salesid") Integer salesid);
	
	List<ChatLog_DistinctFansIdVO> getFansListForVanker(@Param("salesid") Integer salesid);
}