package com.zhiwei.manage.service;

import java.util.Date;
import java.util.List;

import com.zhiwei.manage.bean.Data;
import com.zhiwei.manage.bean.EasyNews;

public interface DataService {

	public void insert(Data data);

	public List<Data> findByPt(Date startTime, Date endTime, String pt);

	public List<Data> findBySource(Date startTime, Date endTime, String source);

	public List<Data> findBytempName(Date startTime, Date endTime, String tempName);
	
	public List<Data> findByMethod(Date startTime, Date endTime,String method,Object value);

	public List<EasyNews> findBySourceFromLibrary(Date startTime, Date endTime, String source);

	public List<EasyNews> findByAccurateSource(String startTime, String endTime, String source);

	public List<EasyNews> findByAccurateSpId(String startTime, String endTime, String SpId);
	
	public List<EasyNews> findByAccurateType(Date startTime, Date endTime, String type);
	
	public List<EasyNews> findByTempName(Date startTime, Date endTime, String tempName);

	public long findWeiboCount(Date start, Date end);

	public long findWeixinCount(Date start, Date end,String pt);

	public List<String> findSourceByLikeParam(String param);

	public List<String> findTmpNameByLikeParam(String param);
	
	public List<String> findTypeByLikeParam(String param);
	//根据配置获取数据
	public long finCountByDayData(Date startDate,Date endDate,String pt,String id);
}
