李林
2024-03-14 262d4d65ad634042c7fcd647ec13385928bc3540
inspect-server/src/main/java/com/yuanchu/mom/pojo/InsOrder.java
@@ -1,167 +1,167 @@
package com.yuanchu.mom.pojo;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yuanchu.mom.annotation.ValueTableShow;
import com.yuanchu.mom.common.OrderBy;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
/**
 * 检验下单
 *
 * @TableName ins_order
 */
@TableName(value = "ins_order")
* 检验下单
* @TableName ins_order
*/
@Data
public class InsOrder extends OrderBy implements Serializable {
public class InsOrder implements Serializable {
    /**
     *
     */
    *
    */
    @NotNull(message="[]不能为空")
    @ApiModelProperty("")
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 委托编号
     */
    @ValueTableShow(1)
    @ApiModelProperty(value = "委托编号")
    * 委托编号
    */
    @Size(max= 255,message="编码长度不能超过255")
    @ApiModelProperty("委托编号")
    @Length(max= 255,message="编码长度不能超过255")
    private String entrustCode;
    /**
     * 样品编码
     */
    @ValueTableShow(2)
    @ApiModelProperty(value = "样品编码")
    * 样品编码
    */
    @Size(max= 255,message="编码长度不能超过255")
    @ApiModelProperty("样品编码")
    @Length(max= 255,message="编码长度不能超过255")
    private String sampleCode;
    /**
     * 样品类型
     */
    @ValueTableShow(3)
    @ApiModelProperty(value = "样品类型")
    private String sampleType;
    /**
     * 样品名称
     */
    @ValueTableShow(3)
    @ApiModelProperty(value = "样品名称")
    private String sample;
    /**
     * 样品数量
     */
    @ValueTableShow(4)
    @ApiModelProperty(value = "样品数量")
    private Integer sampleNum;
    /**
     * 紧急程度
     */
    @ValueTableShow(5)
    @ApiModelProperty(value = "紧急程度")
    private Integer type;
    /**
     * 约定时间
     */
    @ValueTableShow(6)
    @ApiModelProperty(value = "约定时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate appointed;
    /**
     * 检测进度
     */
    @ValueTableShow(7)
    @ApiModelProperty(value = "检测进度")
    private String insProgress;
    /**
     * 下单客户
     */
    @ValueTableShow(8)
    @ApiModelProperty(value = "下单客户")
    * 下单客户
    */
    @Size(max= 255,message="编码长度不能超过255")
    @ApiModelProperty("下单客户")
    @Length(max= 255,message="编码长度不能超过255")
    private String custom;
    /**
     * 下单单位
     */
    @ValueTableShow(9)
    @ApiModelProperty(value = "下单单位")
    * 下单单位
    */
    @Size(max= 255,message="编码长度不能超过255")
    @ApiModelProperty("下单单位")
    @Length(max= 255,message="编码长度不能超过255")
    private String company;
    /**
     * 工厂域
     */
    @ValueTableShow(10)
    @ApiModelProperty(value = "工厂域")
    * 工厂域
    */
    @Size(max= 255,message="编码长度不能超过255")
    @ApiModelProperty("工厂域")
    @Length(max= 255,message="编码长度不能超过255")
    private String code;
    /**
     * 实验室名称
     */
    @ValueTableShow(11)
    @ApiModelProperty(value = "实验室名称")
    * 紧急程度 (0普通 1优先 2紧急)
    */
    @ApiModelProperty("紧急程度 (0普通 1优先 2紧急)")
    private Integer type;
    /**
    * 约定时间
    */
    @ApiModelProperty("约定时间")
    private Date appointed;
    /**
    * 实验室名称
    */
    @Size(max= 255,message="编码长度不能超过255")
    @ApiModelProperty("实验室名称")
    @Length(max= 255,message="编码长度不能超过255")
    private String laboratory;
    /**
     * 规格型号
     */
    @ValueTableShow(12)
    @ApiModelProperty(value = "规格型号")
    * 样品类型
    */
    @Size(max= 255,message="编码长度不能超过255")
    @ApiModelProperty("样品类型")
    @Length(max= 255,message="编码长度不能超过255")
    private String sampleType;
    /**
    * 规格型号
    */
    @Size(max= 255,message="编码长度不能超过255")
    @ApiModelProperty("规格型号")
    @Length(max= 255,message="编码长度不能超过255")
    private String model;
    /**
     * 是否留样
     */
    @ValueTableShow(13)
    @ApiModelProperty(value = "是否留样")
    * 样品名称
    */
    @Size(max= 255,message="编码长度不能超过255")
    @ApiModelProperty("样品名称")
    @Length(max= 255,message="编码长度不能超过255")
    private String sample;
    /**
    * 样品数量
    */
    @ApiModelProperty("样品数量")
    private Double sampleNum;
    /**
    * 是否留样
    */
    @ApiModelProperty("是否留样")
    private Integer isLeave;
    /**
     * 留样数量
     */
    @ValueTableShow(14)
    @ApiModelProperty(value = "留样数量")
    * 留样数量
    */
    @ApiModelProperty("留样数量")
    private Integer leaveNum;
    /**
     * 1:检验处理 0:待审核 2:退回 3:撤销
     */
    * 检测进度
    */
    @Size(max= 255,message="编码长度不能超过255")
    @ApiModelProperty("检测进度")
    @Length(max= 255,message="编码长度不能超过255")
    private String insProgress;
    /**
    * 1:检验处理 0:待审核 2:退回 3:撤销
    */
    @ApiModelProperty("1:检验处理 0:待审核 2:退回 3:撤销")
    private Integer state;
    /**
     * 备注
     */
    * 备注
    */
    @Size(max= 255,message="编码长度不能超过255")
    @ApiModelProperty("备注")
    @Length(max= 255,message="编码长度不能超过255")
    private String remark;
    /**
     * OTC订单号
     */
    * OTC订单号
    */
    @Size(max= 255,message="编码长度不能超过255")
    @ApiModelProperty("OTC订单号")
    @Length(max= 255,message="编码长度不能超过255")
    private String otcCode;
    @ApiModelProperty("创建人")
    @ApiModelProperty("下单人")
    @TableField(fill = FieldFill.INSERT)
    private Integer createUser;
    /**
     *
     */
    @ApiModelProperty("创建时间")
    @ApiModelProperty("下单时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    /**
     *
     */
    @ApiModelProperty("修改人")
    @ApiModelProperty("")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Integer updateUser;
    /**
@@ -171,16 +171,10 @@
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
    /**
    * 外键:下单客户 user表id
    */
    @ApiModelProperty("外键:下单客户 user表id")
    private Integer userId;
    @ApiModelProperty(value = "检验状态(0:待检验1:检验中 2:已检验3:待复核4:复核未通过5:复核通过)")
    private Integer insState;
    @ApiModelProperty(value = "下发时间")
    private LocalDateTime sendTime;
    @ApiModelProperty(value = "工厂")
    private String factory;
}
}