|
@@ -8,6 +8,8 @@ import java.time.LocalDateTime;
|
|
|
import java.util.Date;
|
|
|
|
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
|
+import io.swagger.annotations.ApiModel;
|
|
|
+import io.swagger.annotations.ApiModelProperty;
|
|
|
import lombok.Data;
|
|
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
|
|
|
@@ -22,75 +24,88 @@ import javax.validation.constraints.NotNull;
|
|
|
*/
|
|
|
@TableName(value = "u_wbs_private_standard")
|
|
|
@Data
|
|
|
+@ApiModel(description = "规范文件夹及规范文件对象")
|
|
|
public class PrivateStandard {
|
|
|
/**
|
|
|
*
|
|
|
*/
|
|
|
@TableId
|
|
|
+ @ApiModelProperty(value = "主键", required = true)
|
|
|
private Long id;
|
|
|
|
|
|
/**
|
|
|
* 名称(规范文件夹名称及规范名称)
|
|
|
*/
|
|
|
@NotBlank(message = "名称不能为空")
|
|
|
+ @ApiModelProperty(value = "名称", required = true)
|
|
|
private String name;
|
|
|
|
|
|
/**
|
|
|
* 父级节点id
|
|
|
* type = 2 必传
|
|
|
*/
|
|
|
+ @ApiModelProperty(value = "父级节点id", required = true)
|
|
|
private Long parentId;
|
|
|
|
|
|
/**
|
|
|
* 项目试验节点id
|
|
|
* type = 1 必传
|
|
|
*/
|
|
|
+ @ApiModelProperty(value = "项目试验节点id", required = true)
|
|
|
private Long privateId;
|
|
|
|
|
|
/**
|
|
|
* 类型(1-规范文件夹,2-规范文件)
|
|
|
*/
|
|
|
+ @ApiModelProperty(value = "类型(1-规范文件夹,2-规范文件)", required = true)
|
|
|
@NotNull(message = "类型不能为空")
|
|
|
private Integer type;
|
|
|
|
|
|
/**
|
|
|
* 下达日期(年月日)
|
|
|
*/
|
|
|
- @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
+ @DateTimeFormat(pattern = "yyyy-MM-dd")
|
|
|
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
|
|
|
+ @ApiModelProperty(value = "下达日期(年月日)", required = true)
|
|
|
private Date issueDate;
|
|
|
|
|
|
/**
|
|
|
* 实施日期(年月日)
|
|
|
*/
|
|
|
- @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
+ @DateTimeFormat(pattern = "yyyy-MM-dd")
|
|
|
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
|
|
|
+ @ApiModelProperty(value = "实施日期(年月日)", required = true)
|
|
|
private Date actualizeDate;
|
|
|
|
|
|
/**
|
|
|
* 规范文件路径
|
|
|
*/
|
|
|
+ @ApiModelProperty(value = "规范文件路径", required = true)
|
|
|
private String standardFileUrl;
|
|
|
|
|
|
/**
|
|
|
* 是否删除(0-正常,1-已删除)
|
|
|
*/
|
|
|
+ @ApiModelProperty(value = "是否删除(0-正常,1-已删除)", hidden = true)
|
|
|
private Integer isDeleted = 0;
|
|
|
/**
|
|
|
* 状态(1-正常,2-过期)
|
|
|
*/
|
|
|
- private Integer status = 1;
|
|
|
+ @ApiModelProperty(value = "状态(1-正常,2-过期)", hidden = true)
|
|
|
+ private Integer status;
|
|
|
|
|
|
/**
|
|
|
* 创建时间
|
|
|
*/
|
|
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
+ @ApiModelProperty(value = "创建时间", hidden = true)
|
|
|
private LocalDateTime createTime;
|
|
|
|
|
|
/**
|
|
|
* 创建人
|
|
|
*/
|
|
|
+ @ApiModelProperty(value = "创建人", hidden = true)
|
|
|
private Long createUser;
|
|
|
|
|
|
/**
|
|
@@ -98,10 +113,12 @@ public class PrivateStandard {
|
|
|
*/
|
|
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
+ @ApiModelProperty(value = "修改时间", hidden = true)
|
|
|
private LocalDateTime updateTime;
|
|
|
|
|
|
/**
|
|
|
* 修改人
|
|
|
*/
|
|
|
+ @ApiModelProperty(value = "修改人", hidden = true)
|
|
|
private Long updateUser;
|
|
|
}
|