| | |
| | | package com.yuanchu.mom.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | 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 org.hibernate.validator.constraints.Length; |
| | | |
| | | import javax.validation.constraints.Size; |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | import java.time.LocalDate; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * 检验下单 |
| | | * @TableName ins_order |
| | | */ |
| | | @TableName(value ="ins_order") |
| | | * 检验下单 |
| | | * @TableName ins_order |
| | | */ |
| | | @Data |
| | | public class InsOrder implements Serializable { |
| | | /** |
| | | * |
| | | */ |
| | | @TableName("ins_order") |
| | | public class InsOrder extends OrderBy implements Serializable { |
| | | |
| | | @ApiModelProperty(value = "主键") |
| | | @TableId(type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | /** |
| | | * 委托编号 |
| | | */ |
| | | * 委托编号 |
| | | */ |
| | | @ValueTableShow(2) |
| | | @Size(max= 255,message="编码长度不能超过255") |
| | | @ApiModelProperty(value = "委托编号") |
| | | @Length(max= 255,message="编码长度不能超过255") |
| | | private String entrustCode; |
| | | |
| | | /** |
| | | * 样品编码 |
| | | */ |
| | | private String sampleCode; |
| | | @ValueTableShow(2) |
| | | @Size(max= 255,message="编码长度不能超过255") |
| | | @ApiModelProperty(value = "检验类别") |
| | | @Length(max= 255,message="编码长度不能超过255") |
| | | private String orderType; |
| | | |
| | | /** |
| | | * 下单客户 |
| | | */ |
| | | private String orderingCustomers; |
| | | * 下单客户 |
| | | */ |
| | | @ValueTableShow(3) |
| | | @Size(max= 255,message="编码长度不能超过255") |
| | | @ApiModelProperty("委托客户") |
| | | @Length(max= 255,message="编码长度不能超过255") |
| | | private String custom; |
| | | |
| | | /** |
| | | * 下单单位 |
| | | */ |
| | | private String orderingUnit; |
| | | * 下单单位 |
| | | */ |
| | | @ValueTableShow(4) |
| | | @Size(max= 255,message="编码长度不能超过255") |
| | | @ApiModelProperty("委托单位") |
| | | @Length(max= 255,message="编码长度不能超过255") |
| | | private String company; |
| | | |
| | | @ValueTableShow(4) |
| | | @Size(max= 255,message="编码长度不能超过255") |
| | | @ApiModelProperty("联系方式") |
| | | @Length(max= 255,message="编码长度不能超过255") |
| | | private String phone; |
| | | |
| | | /** |
| | | * 紧急程度 |
| | | */ |
| | | private String urgency; |
| | | * 工厂域 |
| | | */ |
| | | @Size(max= 255,message="编码长度不能超过255") |
| | | @ApiModelProperty("工厂域") |
| | | @Length(max= 255,message="编码长度不能超过255") |
| | | private String code; |
| | | |
| | | /** |
| | | * 约定时间 |
| | | * 紧急程度 (0普通 1优先 2紧急) |
| | | */ |
| | | @ValueTableShow(value = 6, name = "紧急程度") |
| | | @ApiModelProperty("紧急程度 (0普通 1优先 2紧急)") |
| | | private Integer type; |
| | | |
| | | /** |
| | | * 约定时间 |
| | | */ |
| | | @ValueTableShow(7) |
| | | @ApiModelProperty("约定时间") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private LocalDate appointed; |
| | | |
| | | // @ValueTableShow(7) |
| | | @ApiModelProperty("检验结果") |
| | | private Integer insResult; |
| | | |
| | | @ValueTableShow(7) |
| | | @ApiModelProperty("样品处理方式") |
| | | private Integer processing; |
| | | |
| | | @ValueTableShow(7) |
| | | @ApiModelProperty("是否留样") |
| | | private Integer isLeave; |
| | | |
| | | /** |
| | | * 1:检验处理 0:待审核 2:退回 3:撤销 |
| | | */ |
| | | @ApiModelProperty("状态") |
| | | private Integer state; |
| | | |
| | | /** |
| | | * 备注 |
| | | */ |
| | | @ValueTableShow(9) |
| | | @Size(max= 255,message="编码长度不能超过255") |
| | | @ApiModelProperty("备注") |
| | | @Length(max= 255,message="编码长度不能超过255") |
| | | private String remark; |
| | | |
| | | /** |
| | | * OTC订单号 |
| | | */ |
| | | @Size(max= 255,message="编码长度不能超过255") |
| | | @ApiModelProperty("OTC订单号") |
| | | @Length(max= 255,message="编码长度不能超过255") |
| | | private String otcCode; |
| | | |
| | | @ValueTableShow(11) |
| | | @ApiModelProperty("下单人") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | /** |
| | | * |
| | | */ |
| | | private Date appointedTime; |
| | | @ValueTableShow(12) |
| | | @ApiModelProperty("下单时间") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime createTime; |
| | | |
| | | @ValueTableShow(13) |
| | | @ApiModelProperty("下发时间") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime sendTime; |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty("") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty("修改时间") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime updateTime; |
| | | |
| | | private Integer userId; |
| | | |
| | | private Integer mating; |
| | | |
| | | @ApiModelProperty("检验状态(0:待检验 1:检验中 2:已检验 3:待复核 4:复核未通过 5:复核通过)") |
| | | private Integer insState; |
| | | |
| | | /** |
| | | * 检验工厂 |
| | | */ |
| | | private String factory; |
| | | |
| | | /** |
| | | * 实验室名称 |
| | | */ |
| | | private String laboratoryName; |
| | | private String laboratory; |
| | | |
| | | /** |
| | | * 样品分类 |
| | | * 样品类型 |
| | | */ |
| | | private String sampleClassification; |
| | | |
| | | /** |
| | | * 规格型号 |
| | | */ |
| | | private String model; |
| | | private String sampleType; |
| | | |
| | | /** |
| | | * 样品名称 |
| | | */ |
| | | private String sample; |
| | | |
| | | /** |
| | | * 样品数量 |
| | | */ |
| | | private Integer numberSamples; |
| | | @ApiModelProperty("检验时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime insTime; |
| | | |
| | | /** |
| | | * 是否留样 |
| | | */ |
| | | private String leaveSample; |
| | | @ValueTableShow(value = 14, name = "退回理由") |
| | | private String tell; |
| | | |
| | | /** |
| | | * 留样数量 |
| | | */ |
| | | private Integer retainedSamples; |
| | | @ValueTableShow(value = 15, name = "报告发送方式") |
| | | private Integer send; |
| | | |
| | | /** |
| | | * 样品类型 |
| | | */ |
| | | private String smapleType; |
| | | @ValueTableShow(value = 16, name = "来样方式") |
| | | private String formType; |
| | | |
| | | /** |
| | | * 委托公司 |
| | | */ |
| | | private String entrustCompany; |
| | | @ApiModelProperty("审核时间") |
| | | private LocalDateTime examineTime; |
| | | |
| | | /** |
| | | * 委托人 |
| | | */ |
| | | private String entrustName; |
| | | |
| | | /** |
| | | * 制单时间 |
| | | |
| | | */ |
| | | private Date documentTime; |
| | | |
| | | /** |
| | | * 委托时间 |
| | | |
| | | */ |
| | | private Date entrustmentTime; |
| | | |
| | | /** |
| | | * 检测进度 |
| | | |
| | | */ |
| | | private String inspectionProgress; |
| | | |
| | | /** |
| | | * 检测结果 |
| | | |
| | | */ |
| | | private String inspectionResult; |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | private Integer createUser; |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | private Date createTime; |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | private Integer updateUser; |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | private Date updateTime; |
| | | |
| | | @TableField(exist = false) |
| | | private static final long serialVersionUID = 1L; |
| | | } |
| | | } |