| | |
| | | package com.yuanchu.mom.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | 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> |
| | |
| | | * @author 江苏鵷雏网络科技有限公司 |
| | | * @since 2023-08-07 01:54:28 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @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; |
| | | |
| | | /** |
| | | * 部门类型 0:技术部;1:生产部;2:质量部;3:总经办 |
| | | */ |
| | | @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; |
| | | |
| | | /** |
| | | * 处理方式 格式[1,2,3] 0:返工;1:返修;2:让步接收;3:拒收;4:降级使用;5:报废 |
| | | */ |
| | | @NotBlank(message = "处理方式不能为空!") |
| | | @ApiModelProperty(value = "处理方式:0:返工;1:返修;2:让步接收;3:拒收;4:降级使用;5:报废", required = true, example = "返工") |
| | | private String way; |
| | | |
| | | @ApiModelProperty(value = "逻辑删除", hidden = true) |
| | | @TableLogic(value = "1", delval = "0") |
| | | private Integer state; |
| | | |
| | | /** |
| | | * 填写日期 |
| | | */ |
| | | private LocalDateTime createTime; |
| | | @TableField(fill = FieldFill.INSERT) |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "创建时间", hidden = true) |
| | | private Date createTime; |
| | | |
| | | private LocalDateTime updateTime; |
| | | @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; |
| | | |
| | | /** |
| | | * 关联 填写人(用户id) |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "填写日期", required = true, example = "2023-09-05", dataType = "date") |
| | | private Date fillDate; |
| | | |
| | | @ApiModelProperty(value = "填写人Id", hidden = true, example = "1") |
| | | private Integer userId; |
| | | |
| | | /** |
| | | * 关联 不合格统计表id |
| | | */ |
| | | @NotNull(message = "不合格统计表id能为空") |
| | | @ApiModelProperty(value = "不合格统计表id", hidden = true, example = "2") |
| | | private Integer rawUnacceptedId; |
| | | } |