package com.unis.crk.basic.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
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 org.springframework.format.annotation.DateTimeFormat;

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

/**
 * <p>
 * 粮情卡
 * </p>
 *
 * @author TangSong
 * @since 2022-02-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="StorageGrainCard对象", description="粮情卡")
public class StorageGrainCard implements Serializable {

private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键uuid")
    @TableId(value = "id", type = IdType.UUID)
    private String id;

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

    @ApiModelProperty(value = "货位ID")
    private String warehouseNum;

    @ApiModelProperty(value = "仓房名称")
    private String storehouseName;

    @ApiModelProperty(value = "货位名称")
    private String warehouseName;

    @ApiModelProperty(value = "粮食品种编号")
    private String grainVarietyNum;

    @ApiModelProperty(value = "粮食品种名称")
    private String grainVarietyName;

    @ApiModelProperty(value = "验收日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date acceptDate;

    @ApiModelProperty(value = "验收类型编号(0:入库验收,1:倒仓验收,2:移库验收)")
    private String checkTypeNum;

    @ApiModelProperty(value = "验收类型名称")
    private String checkTypeName;

    @ApiModelProperty(value = "温度测量发现问题及处理意见")
    private String grainRemark;

    @ApiModelProperty(value = "水分检验发现问题及处理意见")
    private String waterRemark;

    @ApiModelProperty(value = "市平台货位编码")
    private String hwbm;

    @ApiModelProperty(value = "入库数量")
    private BigDecimal rksl;

    @ApiModelProperty(value = "是否满仓 入库(0:否,1:是).倒仓,移库(2:表示倒仓移库数据)")
    private String sfmc;

    @ApiModelProperty(value = "生产年度")
    private String scnd;

    @ApiModelProperty(value = "审批通过批号,(入库接收分批数据(使用生产年度和是否满仓区分是否一批数据)倒仓,移库(使用批号) 一批数据.)")
    private String tgph;

    @ApiModelProperty(value = "组织机构编码")
    private String orgId;

    @ApiModelProperty(value = "标记类型(保存:1,提交:2)关联表保持同步更新.)注:暂时只用于手动补录")
    private String flagType;

    @ApiModelProperty(value = "关联(basic_storehouse 表storehouse_id)")
    private String storehouseId;

    @ApiModelProperty(value = "关联(basic_warehouse 表warehouse_id)")
    private String warehouseId;

    @ApiModelProperty(value = "备用字段(轮换协议编号)")
    private String spareOne;

    @ApiModelProperty(value = "备用字段(以用修改注释")
    private String spareTwo;

    @ApiModelProperty(value = "备用字段(以用修改注释)")
    private String spareThree;

    @ApiModelProperty(value = "备用字段(以用修改注释)")
    private Integer spareFour;

    @ApiModelProperty(value = "备用字段(以用修改注释)")
    private Integer spareFive;

    @ApiModelProperty(value = "是否归档(0:是，1:否)")
    private String sfgd;

    @ApiModelProperty(value = "归档时间")
    private Date gdsj;


}
