package com.shinsoft.sto.model.main;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.shinsoft.generator.model.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

@Getter
@Setter
@Accessors(chain = true)
@TableName("T_WARE_CARGOCHANGE_RECORD")
@ApiModel(value = "货权变更记录", description = "货权重量变更履历表")
public class CargoChangeRecord extends BaseModel {

    @ApiModelProperty("重量")
    private BigDecimal weight = BigDecimal.ZERO;

    @ApiModelProperty("修改信息来源")
    private String changeFrom;

    @ApiModelProperty("增减情况")
    private String subStr;

    @ApiModelProperty("上游客户ID")
    private String uperCustomerId;

    @ApiModelProperty("下游客户ID")
    private String customerId;

    @ApiModelProperty("订单号")
    private String ordNo;

    @ApiModelProperty("备注")
    private String remark;

    // 关联上游客户信息
    @TableField(exist = false)
    @ApiModelProperty("上游客户信息")
    private Customer uperCustomer;

    // 关联客户信息
    @TableField(exist = false)
    @ApiModelProperty("客户信息")
    private Customer customer;
}