package com.iformall.service;

import com.github.pagehelper.PageInfo;
import com.iformall.common.ResultData;
import com.iformall.domain.po.MallUserInfo;
import com.iformall.domain.po.WxBillDaily;
import com.iformall.domain.vo.WxBillDailyVo;

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

/**
 * @author gongbiao
 */
public interface WxBillDailyService {

	/**
     * 根据实体查询分页列表
     *
     * @param offset
     * @param limit
     * @param record
     * @return
     */
    PageInfo<WxBillDaily> listAsPage(WxBillDaily record, Integer pageIndex, Integer pageSize);

    void updateBillStatus(WxBillDaily record);

    /**
     * 根据Id获得实体
     *
     * @param id
     * @return
     */
    WxBillDaily getById(Long id);
    
        /**
     * 保存或更新实体
     *
         * @param record
         * @param user
         */
        ResultData saveOrUpdate(WxBillDaily record, MallUserInfo user);

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


    ResultData updatePaid(Long id);

    void exportTemplate(HttpServletRequest request, HttpServletResponse response, String tenantId);

    void insertData(WxBillDailyVo billDaily, String importKey, MallUserInfo user);

    void exportBill(HttpServletRequest request, HttpServletResponse response, WxBillDaily wxBillDaily);

}
