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

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;
import org.dromara.common.core.utils.StringUtils;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author sunzexing
 * @version 1.0
 * @title ProInfoCommonVo
 * @description
 * @create 2024-04-24 17:05
 */

@Data
public class ProInfoCommonVo implements Serializable {


    @ExcelProperty("创建时间")
    private Date createTime;

    @ExcelProperty("产品编号")
    private String proNo;

    @ExcelProperty("代理商名称")
    private String channelName;

    @ExcelProperty("服务商名称")
    private String serviceName;

    @ExcelProperty("服务商编号")
    private String serviceNo;

    @ExcelProperty("业务类型")
    private Integer  busType;

    @ExcelProperty("开票类型")
    private Integer invoiceType;

    @ExcelProperty("开票项目")
    private String invoiceItems;

    @ExcelProperty("费率(%)")
    private BigDecimal serviceCharge;

    @ExcelProperty("计费模式")
    private Integer chargeMode;

    @ExcelProperty("到账方式")
    private Integer settlementStyle;

    private Long maxMonth;


    @ExcelProperty("单月发放上限(元)")
    private String maxMonthStr;

    @ExcelProperty("上架状态")
    private Integer proStatus;

    public String getMaxMonthStr() {
        if(maxMonth != null) {
            return StringUtils.fenToYuanFormatter(maxMonth);
        }else {
            return "--";
        }
    }



}
