package com.bs.jxc.domain;

import com.bs.common.annotation.Excel;
import com.bs.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;

import java.math.BigDecimal;

/**
 * 库场管理对象 cm_stock
 *
 * @author bs
 * @date 2023-07-10
 */
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("cm_stock")
@Data
public class CmStock extends BaseEntity{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "主键")
    private Long id;

    /** 库场代码 */

    @Excel(name = "库场代码")
    @ApiModelProperty(value = "库场代码")
    private String stockCode;

    /** 仓位名称 */

    @Excel(name = "仓位名称")
    @ApiModelProperty(value = "仓位名称")
    private String stockName;


    private String remark;

    @TableField(exist = false)
    private Long stockId;
    /** 货物件数 */
    @TableField(exist = false)
    private BigDecimal nowStockNum;

    /** 货物重量 */
    @TableField(exist = false)
    private BigDecimal nowStockWt;

    /** 货物体积 */
    @TableField(exist = false)
    private BigDecimal nowStockVol;
    /** 货物体积 */
    @TableField(exist = false)
    private BigDecimal nowCargoValue;

    @TableField(exist = false)
    private String warehouseName;
}
