package com.yuanchu.mom.pojo;
|
|
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 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.time.LocalDate;
|
import java.time.LocalDateTime;
|
|
/**
|
* 检验下单
|
* @TableName ins_order
|
*/
|
@Data
|
public class InsOrder extends OrderBy implements Serializable {
|
|
@ApiModelProperty(value = "主键")
|
@TableId(type = IdType.AUTO)
|
private Integer id;
|
|
/**
|
* 委托编号
|
*/
|
@ValueTableShow(2)
|
@Size(max= 255,message="编码长度不能超过255")
|
@ApiModelProperty("委托编号")
|
@Length(max= 255,message="编码长度不能超过255")
|
private String entrustCode;
|
|
/**
|
* 下单客户
|
*/
|
@ValueTableShow(3)
|
@Size(max= 255,message="编码长度不能超过255")
|
@ApiModelProperty("下单客户")
|
@Length(max= 255,message="编码长度不能超过255")
|
private String custom;
|
|
/**
|
* 下单单位
|
*/
|
@ValueTableShow(4)
|
@Size(max= 255,message="编码长度不能超过255")
|
@ApiModelProperty("下单单位")
|
@Length(max= 255,message="编码长度不能超过255")
|
private String company;
|
|
/**
|
* 工厂域
|
*/
|
@ValueTableShow(5)
|
@Size(max= 255,message="编码长度不能超过255")
|
@ApiModelProperty("工厂域")
|
@Length(max= 255,message="编码长度不能超过255")
|
private String code;
|
|
/**
|
* 紧急程度 (0普通 1优先 2紧急)
|
*/
|
@ValueTableShow(6)
|
@ApiModelProperty("紧急程度")
|
private Integer type;
|
|
/**
|
* 约定时间
|
*/
|
@ValueTableShow(7)
|
@ApiModelProperty("约定时间")
|
@TableField(fill = FieldFill.INSERT)
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
private LocalDate appointed;
|
|
/**
|
* 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订单号
|
*/
|
@ValueTableShow(10)
|
@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;
|
|
/**
|
*
|
*/
|
@ValueTableShow(12)
|
@ApiModelProperty("下单时间")
|
@TableField(fill = FieldFill.INSERT)
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
private LocalDateTime createTime;
|
|
/**
|
*
|
*/
|
@ApiModelProperty("")
|
@TableField(fill = FieldFill.INSERT_UPDATE)
|
private Integer updateUser;
|
|
/**
|
*
|
*/
|
@ValueTableShow(13)
|
@ApiModelProperty("修改时间")
|
@TableField(fill = FieldFill.INSERT_UPDATE)
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
private LocalDateTime updateTime;
|
|
}
|