package com.clx.performance.vo.pc.carrier.settle;

import com.clx.performance.enums.settle.SettlementDriverEnum;
import com.msl.common.convertor.type.MoneyOutConvert;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;

/**
 * @ClassName CarrierPageSettlementOwnerDetailVO
 * @Description
 * @Author kavin
 * @Date 2023/10/16 15:01
 * @Version 1.0
 */
@Getter
@Setter
public class CarrierPageSettlementDriverVO {
    @ApiModelProperty(value = "结算单Id")
    private Integer id;
    @ApiModelProperty(value = "运单编号")
    private String childNo;
    @ApiModelProperty(value = "货单编号")
    private String orderGoodsNo;
    @ApiModelProperty(value = "订单编号")
    private String orderNo;
    @ApiModelProperty(value = "车主编码")
    private Long driverUserNo;
    @ApiModelProperty(value = "司机名称")
    private String driverName;
    @ApiModelProperty(value = "货物id")
    private Integer goodsId;
    @ApiModelProperty(value = "货物名称")
    private String goodsName;
    @ApiModelProperty(value = "车牌号")
    private String truckNo;
    @ApiModelProperty(value = "开票标识：1网运单 2普通单")
    private Integer invoiceType;
    @ApiModelProperty(value = "结算单号")
    private String settlementNo;
    @ApiModelProperty(value = "实际净重（吨）")
    private BigDecimal weight;
    @MoneyOutConvert
    @ApiModelProperty(value = "运费单价")
    private BigDecimal freightPrice;
    @MoneyOutConvert
    @ApiModelProperty(value = "实际运费金额")
    private BigDecimal freight;
    @ApiModelProperty(value = "货损吨数（吨）")
    private BigDecimal lossWeight;
    @MoneyOutConvert
    @ApiModelProperty(value = "货损单价")
    private BigDecimal lossPrice;
    @MoneyOutConvert
    @ApiModelProperty(value = "货损金额")
    private BigDecimal lossFreight;
    @MoneyOutConvert
    @ApiModelProperty(value = "预付运费金额")
    private BigDecimal prepayFreight;
    @ApiModelProperty(value = "预付运费标示  0:未预付 1：已预付")
    private Integer prepayFreightFlag;
    @ApiModelProperty(value = "借款标示  0：未借款 1：已借款 2:已还款")
    private Integer loanFlag;

    @ApiModelProperty(value = "借款标示  0：未借款 1：已借款 2:已还款")
    private String loanFlagMsg;

    @ApiModelProperty(value = "开票公司id")
    private Integer invoicingCompanyId;
    @ApiModelProperty(value = "开票公司简称")
    private String invoicingCompanyShorterName;
    @MoneyOutConvert
    @ApiModelProperty(value = "平台服务费")
    private BigDecimal platformServiceFee;
    @ApiModelProperty(value = "平台服务费费率%")
    private BigDecimal platformServiceFeeRate;

    @MoneyOutConvert
    @ApiModelProperty(value = "结算金额")
    private BigDecimal settlementFreight;
    @ApiModelProperty(value = "状态")
    private Integer status;
    private String statusMsg;
    public String getStatusMsg() {
        return SettlementDriverEnum.Status.getMsgByCode(status);
    }

    @ApiModelProperty(value = "创建时间")
    private String createTime;
    @ApiModelProperty(value = "结算平台 1：马上来  2：网运平台")
    private String settlementPlatform;
    @ApiModelProperty(value = "支付失败原因")
    private String payErrorMsg;







}
