package cn.pluss.platform.bill;

import cn.pluss.platform.entity.BillSendRecord;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Djh
 * @since 2021-05-10
 */
public interface BillSendRecordService extends IService<BillSendRecord> {


    /**
     * 请求生成账单并发送邮件
     * @param entity
     */
    void reqBill(BillSendRecord entity);



    /**
     * 生成账单excel
     * @param entity
     * @return  账单workBook对象
     */
    XSSFWorkbook createBill(BillSendRecord entity);

    /**
     * 将账单发送到指定邮箱
     * @param entity
     * @param workbook
     */
    void sendBill(BillSendRecord entity, XSSFWorkbook workbook);
}
