package com.ssj.service.weixin.story.service;

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

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.ssj.bean.weixin.story.bean.Story;
import com.ssj.bean.weixin.story.bean.StoryDate;
import com.ssj.framework.core.common.service.BaseService;


public interface StoryService   extends BaseService<Story, String>{

	  public  Page<Story>  findByPage(Map<String, Object> params, Pageable sp);
	  
	  public List<StoryDate> getNextDays(Date date,int days,Date today,String userId,String storyId)throws Exception;
	  /**
	   * 取跟当天一样的数据，没有就去距离当天最近的一条数据
	   * @return
	   */
	  public  Story  getRecentStroy(int day,Date stroyDate)throws Exception;
	  public Story  getEqStroy();
	  
	  public Integer updateType(String id,Integer type);
	  /**
	   * 获取当前打卡期限内的打卡任务
	  * @return
	  * 创建人：ZhangCaibao 
	  * 2017年8月10日 上午9:31:12 
	  * @List<Story>
	   */
	  public List<Story> punchTimeStory();
	  
	  public List<Story> findByType(Integer type);
}
