package com.unis.crk.cplbusiness.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

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

/**
 * <p>
 * 商品拆分
 * </p>
 *
 * @author TangSong
 * @since 2022-05-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="CommoditySplitting对象", description="商品拆分")
public class CommoditySplitting implements Serializable {

private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "数据记录id")
    @TableId(value = "dataId", type = IdType.UUID)
    private String dataId;

    @ApiModelProperty(value = "单位ID")
    private String unitid;

    @ApiModelProperty(value = "条目创建人")
    private String builder;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "builderDate",fill = FieldFill.INSERT)
    private Date builderDate;

    @ApiModelProperty(value = "编辑人")
    private String editor;

    @ApiModelProperty(value = "修改时间")
    @TableField(value = "modifyDate",fill = FieldFill.INSERT_UPDATE)
    private Date modifyDate;

    @ApiModelProperty(value = "上传数据时间")
    @TableField(value = "updateTime",strategy = FieldStrategy.IGNORED,update = "null",fill = FieldFill.UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "拆分单号")
    private String plitDocNo;

    @ApiModelProperty(value = "商品名称")
    private String commodityName;

    @ApiModelProperty(value = "商品编码")
    private String commodityCode;

    @ApiModelProperty(value = "品牌")
    private String brand;

    @ApiModelProperty(value = "品种")
    private String varieties;

    @ApiModelProperty(value = "拆分前规格")
    private String specificationBeforeDisassembly;

    @ApiModelProperty(value = "拆分前计量单位")
    private String uomBeforeSplitting;

    @ApiModelProperty(value = "生产日期")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
    private Date dateOfManufacture;

    @ApiModelProperty(value = "拆分件数")
    private Integer number;

    @ApiModelProperty(value = "拆分后规格")
    private String specificationAfterDisassembly;

    @ApiModelProperty(value = "拆分后计量单位")
    private String uomAfterSplitting;

    @ApiModelProperty(value = "拆分时间")
    private Date plitTime;

    @ApiModelProperty(value = "生产批次")
    private String roductionBatch;

    @ApiModelProperty(value = "仓房号")
    private String arehouseNumber;

    @ApiModelProperty(value = "货位号")
    private String locationNumber;

    @ApiModelProperty(value = "审核意见")
    private String reviewComments;

    @ApiModelProperty(value = "主数据id")
    private String mainDataId;
}
