package org.dromara.payment.invoice.domain.vo;

import org.dromara.payment.invoice.domain.MerInvoiceBill;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 发票明细视图对象 mer_invoice_bill
 *
 * @author LionLi
 * @date 2024-05-06
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = MerInvoiceBill.class)
public class MerInvoiceBillVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long id;

    /**
     * 票据id
     */
    @ExcelProperty(value = "票据id")
    private Long invId;

    /**
     * 开票金额（分）
     */
    @ExcelProperty(value = "开票金额", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "分=")
    private Long invAmount;

    /**
     * 状态（1:正常 2:取消）
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "1=:正常,2=:取消")
    private Long status;

    /**
     * 账单金额（分）
     */
    @ExcelProperty(value = "账单金额", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "分=")
    private Long money;

    /**
     * 服务费金额（分）
     */
    @ExcelProperty(value = "服务费金额", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "分=")
    private Long serviceChargeAmount;

    /**
     * 项目id
     */
    @ExcelProperty(value = "项目id")
    private Long taskId;

    /**
     * 项目编号
     */
    @ExcelProperty(value = "项目编号")
    private String taskNo;

    /**
     * 结算中心id
     */
    @ExcelProperty(value = "结算中心id")
    private Long sydId;

    /**
     * 结算中心编号
     */
    @ExcelProperty(value = "结算中心编号")
    private String sydNo;

    /**
     * 运营商编号
     */
    @ExcelProperty(value = "运营商编号")
    private String opNo;

    /**
     * 运营商id
     */
    @ExcelProperty(value = "运营商id")
    private Long opId;

    /**
     * 代理商id
     */
    @ExcelProperty(value = "代理商id")
    private Long channelId;

    /**
     * 代理商编号
     */
    @ExcelProperty(value = "代理商编号")
    private String channelNo;

    /**
     * 代理商上下级关系编码
     */
    @ExcelProperty(value = "代理商上下级关系编码")
    private String channelCode;

    /**
     * 商户id
     */
    @ExcelProperty(value = "商户id")
    private Long merId;

    /**
     * 商户编号
     */
    @ExcelProperty(value = "商户编号")
    private String merNo;

    /**
     * 账单id
     */
    @ExcelProperty(value = "账单id")
    private Long billId;

    /**
     * 账单批次号
     */
    @ExcelProperty(value = "账单批次号")
    private String billNo;

    /**
     * 账单批次状态（1:发放成功）
     */
    @ExcelProperty(value = "账单状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "1=:发放成功")
    private Long billStatus = 1l;

    /**
     * 服务商名称
     */
    @ExcelProperty(value = "服务商名称")
    private String sydName;

    /**
     * 企业名称
     */
    @ExcelProperty(value = "企业名称")
    private String merName;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;
}
