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

import com.clx.performance.enums.loan.OwnerLoanAccountRunningWaterRecordEnum;
import com.msl.common.convertor.type.MoneyOutConvert;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import java.math.BigDecimal;

/**
* @Author: aiqinguo
* @Description: 货主账户流水记录
* @Date: 2024/01/23 10:06:01
* @Version: 1.0
*/

@ApiModel(description = "货主账户流水记录")
@Getter
@Setter
@ToString
@NoArgsConstructor
public class OwnerLoanAccountRunningWaterRecordVO {

    @ApiModelProperty(value = "id", example = "")
    private Integer id;
    @ApiModelProperty(value = "货主编码", example = "1000000")
    private String ownerUserNo;
    @ApiModelProperty(value = "货主名称", example = "张三")
    private String ownerUserName;
    @ApiModelProperty(value = "联系电话", example = "13000000000")
    private String mobile;
    @ApiModelProperty(value = "流水号", example = "100000")
    private Long runningWaterNo;
    @ApiModelProperty(value = "借款单号", example = "100000")
    private Long loanNo;
    @ApiModelProperty(value = "运单编号", example = "100000")
    private String childNo;
    @ApiModelProperty(value = "流水类型 70：运单核销 80：借款", example = "10")
    private Integer runningWaterType;
    @ApiModelProperty(value = "流水类型 70：运单核销 80：借款", example = "10")
    private String runningWaterTypeMsg;
    public String getRunningWaterTypeMsg() {
        return OwnerLoanAccountRunningWaterRecordEnum.RunWaterType.getMsgByCode(runningWaterType);
    }

    @MoneyOutConvert
    @ApiModelProperty(value = "金额", example = "1.23")
    private BigDecimal alterationBalance;
    @MoneyOutConvert
    @ApiModelProperty(value = "可用余额", example = "1.23")
    private BigDecimal useableBalance;
    @MoneyOutConvert
    @ApiModelProperty(value = "冻结余额", example = "1.23")
    private BigDecimal frozenBalance;
    @MoneyOutConvert
    @ApiModelProperty(value = "账户余额", example = "1.23")
    private BigDecimal accountBalance;
    @ApiModelProperty(value = "创建人", example = "张三")
    private String createBy;
    @ApiModelProperty(value = "创建时间", example = "")
    private String createTime;

}