zss
2023-09-13 a376a001494a12c04b6a2a04bf797cbd7198d1f7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
package com.yuanchu.mom.pojo;
 
import com.baomidou.mybatisplus.annotation.*;
 
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
 
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;
import reactor.util.annotation.NonNull;
 
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
 
/**
 * <p>
 * 不合格处理意见表
 * </p>
 *
 * @author 江苏鵷雏网络科技有限公司
 * @since 2023-08-07 01:54:28
 */
@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class Opinion implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    /**
     * 意见id
     */
    @ApiModelProperty(value = "id", required = true, example = "1")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
 
    @NotNull(message = "部门类型不能为空")
    @ApiModelProperty(value = "部门类型 0:技术部;1:生产部;2:质量部;3:总经办", hidden = true, example = "0")
    private Integer type;
 
    @NotBlank(message = "处理意见不能为空!")
    @ApiModelProperty(value = "处理意见", required = true, example = "返工")
    private String tell;
 
    @NotNull(message = "处理方式不能为空!")
    @ApiModelProperty(value = "处理方式:0:返工;1:返修;2:让步接收;3:拒收;4:降级使用;5:报废", required = true, example = "0")
    private Integer way;
 
    @ApiModelProperty(value = "逻辑删除", hidden = true)
    @TableLogic(value = "1", delval = "0")
    private Integer state;
 
    @TableField(fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间", hidden = true)
    private Date createTime;
 
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty(value = "更新时间: 即填写日期", hidden = true)
    private Date updateTime;
 
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty(value = "填写日期", hidden = true, example = "2023-09-05", dataType = "date")
    private Date fillDate;
 
    @ApiModelProperty(value = "填写人Id", hidden = true, example = "1")
    private Integer userId;
 
    @NotNull(message = "不合格统计表id能为空")
    @ApiModelProperty(value = "不合格统计表id", hidden = true, example = "2")
    private Integer rawUnacceptedId;
}