package com.ssj.service.weixin.sales.service;

import com.ssj.bean.weixin.sales.domain.LibVipCode;
import com.ssj.framework.core.common.service.BaseService;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

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


/** 
 * @author  ZhangCaibao 
 * @version 2017年6月6日 下午4:04:39 
 * 类说明 
 */
public interface LibVipCodeService  extends BaseService<LibVipCode, String>{

	
	public  Page<LibVipCode>  findByPage(Map<String, Object> params, Pageable sp);
	
	 LibVipCode  findByVipCode(String vipCode,String libId);
	 
	 LibVipCode  findByVipCodeAndType(String vipCode,String libId);
	 
	 List<Map<String, Object>> getLibVipCodeList(Map<String, Object> searchParams); 
	 
	 public void inserLibVipCode(String libId,String discount);
	 
	 
	 //查询出指定条数，同时type修改为3，锁定
	 public  List<LibVipCode> queryLibVipCodeBy(String libId,Integer type,String discount,Integer size);
	 
	 List<LibVipCode> queryLibVipCodeByType();
}
