package com.iformall.service;

import com.github.pagehelper.PageInfo;
import com.iformall.common.ResultData;
import com.iformall.domain.po.WxMerchantSubsidy;
import com.iformall.domain.vo.WxMerchantSubsidyVo;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

public interface WxMerchantSubsidyService {

    /**
     * 汇总计算
     * @param record
     * @return
     */
    List<Map<String, Object>> sumForSubsidy(WxMerchantSubsidyVo record);

	/**
     * 根据实体查询分页列表
     *
     * @param record
     * @param pageIndex
     * @param pageSize
     * @return
     */
	PageInfo<WxMerchantSubsidyVo> listAsPage(WxMerchantSubsidyVo record, Integer pageIndex, Integer pageSize);
	
	/**
     * 根据Id获得实体
     *
     * @param id
     * @return
     */
    WxMerchantSubsidy getById(Long id);
    
    /**
     * 保存或更新实体
     *
     * @param record
     */
    ResultData saveOrUpdate(WxMerchantSubsidy record);

    /**
     * 更新实体
     *
     * @param record
     */
    ResultData update(WxMerchantSubsidy record);

    /**
     * 根据Id删除实体
     *
     * @param id
     */
    void deleteById(Long id);

    /**
     * 补贴流水导出
     */
    void exportData(WxMerchantSubsidyVo wxMerchantSubsidy, HttpServletRequest request, HttpServletResponse response);

    Map<String, Long> summary(WxMerchantSubsidyVo wxMerchantSubsidy);

}
