package com.ruoyi.process.pojo; import com.baomidou.mybatisplus.annotation.*; import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import io.swagger.v3.oas.annotations.media.Schema; import lombok.Data; import java.time.LocalDate; import java.time.LocalDateTime; /** * 标准查新 * * @author zhuo * @since 2024-11-04 */ @Data @TableName("cnas_process_method_search_new") @Schema(description = "标准查新表") public class ProcessMethodSearchNew { @TableId(type = IdType.AUTO) @Schema(description = "标准查新记录ID") private Integer methodSearchNewId; @Schema(description = "标准方法验证id") private Integer verifyId; @Schema(description = "标准名称") private String methodName; @Schema(description = "标准号") private String standardNo; @Schema(description = "文件编号") private String fileNo; @Schema(description = "是否是新标准, 0否,1是") private Integer isNewStandard; @Schema(description = "新标准名称") private String newMethodName; @Schema(description = "新标准号") private String newStandardNo; @Schema(description = "查新来源:0-2为历史来源,3其他,4中国标准化委员会,5国家市场监督管理总局,6全国标准信息公共服务平台,7国家标准全文公开系统,8工标网") private Integer searchNewSource; @Schema(description = "查新时间") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime searchNewTime; @Schema(description = "查新结果") private String searchNewResult; @Schema(description = "来源为其他时填写的具体网址或网站名称") private String searchNewWebsite; @Schema(description = "最近一次查新人ID") private Integer searchNewUserId; @Schema(description = "查新人") @TableField(exist = false) private String searchNewUserName; @Schema(description = "下次查新日期") @TableField(exist = false) @JsonFormat(pattern = "yyyy-MM-dd") private LocalDate nextSearchDate; @JsonIgnore @TableField("next_search_date_override") private LocalDate nextSearchDatePersisted; @Schema(description = "查新状态:未到期、今日到期、已逾期") @TableField(exist = false) private String searchDueStatus; @Schema(description = "备注,0作废, 1替换") private Integer remark; @Schema(description = "来源标准维护ID,自动生成记录使用") private Integer standardMethodId; @Schema(description = "当前自动记录对应的标准维护ID;归档后为空") private Integer currentAutoStandardId; @Schema(description = "是否自动归档(0否,1是)") private Integer isAutoArchived; @Schema(description = "自动归档时间") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime autoArchivedTime; @Schema(description = "创建人") @TableField(fill = FieldFill.INSERT) private Integer createUser; @Schema(description = "创建时间") @JsonFormat(pattern = "yyyy-MM-dd") @TableField(fill = FieldFill.INSERT) private LocalDateTime createTime; @Schema(description = "修改人") @TableField(fill = FieldFill.INSERT_UPDATE) private Integer updateUser; @Schema(description = "修改时间") @TableField(fill = FieldFill.INSERT_UPDATE) private LocalDateTime updateTime; }