zss
2023-09-25 d1ea726be5628c46fb6be700a0197002d55d39f1
inspect-server/src/main/java/com/yuanchu/mom/pojo/FinishedInspect.java
@@ -1,102 +1,110 @@
package com.yuanchu.mom.pojo;
import com.baomidou.mybatisplus.annotation.*;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.io.Serializable;
/**
 * <p>
 * 成品检验(FinishedInspect)表实体类
 *
 * </p>
 *
 * @author 江苏鵷雏网络科技有限公司
 * @since 2023-08-01
 * @author zss
 * @since 2023-09-06 13:33:56
 */
@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="FinishedInspect对象", description="")
@TableName("finished_inspect")
public class FinishedInspect implements Serializable {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "主键", hidden = true)
    @TableId(value = "id", type = IdType.AUTO)
    /**
     * 主键
     **/
    @TableId(type = IdType.AUTO)
    private Integer id;
    @NotBlank(message = "订单号不允许为空!")
    @ApiModelProperty(value = "订单号", required = true, example = "DDH202308010001")
    /**
     * 订单号
     **/
    private String orderNumber;
    @NotBlank(message = "客户名称不允许为空!")
    @ApiModelProperty(value = "客户名称", required = true, example = "懒洋洋")
    /**
     * 客户名称
     **/
    private String customerName;
    @NotBlank(message = "工程名称不允许为空!")
    @ApiModelProperty(value = "工程名称", required = true, example = "液体硅橡胶")
    /**
     * 工程名称
     **/
    private String projectName;
    @NotBlank(message = "质量追溯号不允许为空!")
    @ApiModelProperty(value = "质量追溯号", required = true, example = "ZLZSH202308010001")
    /**
     * 质量追溯号
     **/
    private String qualityTraceability;
    @ApiModelProperty(value = "0:成品;1:过程;", hidden = true)
    private Integer type;
    @NotBlank(message = "单位不允许为空!")
    @ApiModelProperty(value = "单位", required = true, example = "吨")
    /**
     * 单位
     **/
    private String unit;
    @NotNull(message = "请输入数量!")
    @ApiModelProperty(value = "数量", required = true, example = "50")
    /**
     * 数量
     **/
    private Integer quantity;
    @NotNull(message = "请选择规格型号!")
    @ApiModelProperty(value = "规格型号拼接字符", required = true, example = "8.7/15kV JLS-3.2")
    /**
     * 规格型号
     **/
    private String specificationsModel;
    @NotNull(message = "请选择型号ID!")
    @TableField(exist = false)
    @ApiModelProperty(value = "型号ID", required = true, example = "1")
    private Integer specificationsId;
    @ApiModelProperty(value = "项目编码", required = true, example = "GX20230807")
    private String materialCode;
    @NotNull(message = "请选择项目名称!")
    @ApiModelProperty(value = "项目名称", required = true, example = "光纤")
    /**
     * 物料名称
     **/
    private String material;
    @NotNull(message = "请选择主机工!")
    @ApiModelProperty(value = "主机工:用户id", required = true, example = "1")
    /**
     * 物料编码
     **/
    private String materialCode;
    /**
     * 报检人:用户id
     **/
    private Integer userId;
    @ApiModelProperty(value = "检验结论", hidden = true, required = true, example = "DDH202308010001")
    /**
     * 关联 最后一道工艺id
     **/
    private Integer techId;
    /**
     * 检验结论;0:不合格;1:合格
     **/
    private Integer result;
    @ApiModelProperty(value = "逻辑删除 正常>=1,删除<=0", hidden = true)
    @TableLogic(value = "1", delval = "0")
    private Integer state;
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间", hidden = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "更新时间", hidden = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date updateTime;
}