package com.unis.crk.quality.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;

import java.util.ArrayList;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.List;

import com.unis.crk.business.qcrk.entity.DataCrkywJyxxFlt001;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 质量标准-根表
 * </p>
 *
 * @author TangSong
 * @since 2022-02-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="QualityBase对象", description="质量标准-根表")
public class QualityBase implements Serializable {

private static final long serialVersionUID=1L;

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

    @ApiModelProperty(value = "启用标志   0：未启用，1：已启用")
    @TableField("IfStarted")
    private Integer IfStarted;

    @ApiModelProperty(value = "文件名称")
    @TableField("FileName")
    private String FileName;

    @ApiModelProperty(value = "适用于品种")
    @TableField("FoodType")
    private String FoodType;

    @ApiModelProperty(value = "品种名称")
    @TableField("FoodName")
    private String FoodName;

    @ApiModelProperty(value = "创建日期")
    @TableField(value = "CreateTime",fill = FieldFill.INSERT)
    private Date CreateTime;

    @ApiModelProperty(value = "创建人")
    @TableField("Creater")
    private String Creater;

    @ApiModelProperty(value = "是否成品粮")
    @TableField("is_cpl")
    private String isCpl;

    @ApiModelProperty(value = "备注")
    @TableField("Remark")
    private String Remark;

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

    @ApiModelProperty(value = "质量标准-等级标准信息")
    @TableField(exist = false)
    private List<QualityCheckitem> checkitems = new ArrayList<>();

    @ApiModelProperty(value = "质量标准-扣量增量信息")
    @TableField(exist = false)
    private List<QualityCutitem> cutitems = new ArrayList<>();
}
