package com.gkhy.system.domain.vo.request;
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
|
import javax.validation.constraints.NotBlank;
|
import javax.validation.constraints.NotNull;
|
import java.io.Serializable;
|
import java.util.Date;
|
|
@ApiModel(value = "项目管理保存" , description = "项目管理保存")
|
@Data
|
public class ProjectManageSaveReq implements Serializable {
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* 主键
|
*/
|
@ApiModelProperty(value = "id")
|
private Long id;
|
|
/**
|
* 项目名称
|
*/
|
@ApiModelProperty(value = "项目名称",required = true)
|
@NotBlank(message = "项目名称不能为空")
|
private String projectName;
|
|
/**
|
* 处室
|
*/
|
@ApiModelProperty(value = "处室",required = true)
|
@NotNull(message = "处室不能为空")
|
private Long deptId;
|
|
/**
|
* 部门名称
|
*/
|
@ApiModelProperty(value = "处室名称",required = true)
|
@NotBlank(message = "处室不能为空")
|
private String deptName;
|
|
/**
|
* 被检单位
|
*/
|
@ApiModelProperty(value = "被检单位")
|
private String companyName;
|
|
/**
|
* 项目地址
|
*/
|
@ApiModelProperty(value = "项目地址",required = true)
|
@NotBlank(message = "项目地址不能为空")
|
private String projectAddress;
|
|
/**
|
* 部门带队人员
|
*/
|
@ApiModelProperty(value = "部门带队人员",required = true)
|
@NotBlank(message = "处室带队人员不能为空")
|
private String deptUserName;
|
|
/**
|
* 项目预计开始日期
|
*/
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
@ApiModelProperty(value = "项目预计开始日期",required = true)
|
@NotNull(message = "项目预计开始日期不能为空")
|
private Date projectDateStart;
|
|
/**
|
* 项目预计结束日期
|
*/
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
@ApiModelProperty(value = "项目预计结束日期", required = true)
|
@NotNull(message = "项目预计结束日期不能为空")
|
private Date projectDateEnd;
|
|
|
@ApiModelProperty(value = "项目概况",required = true)
|
@NotBlank(message = "项目概况不能为空")
|
private String remark;
|
}
|