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; /** *
* 不合格处理意见表 *
* * @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; }