package com.gkhy.system.domain.vo.request;
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.gkhy.system.domain.vo.ProjectDeptPostDTO;
|
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 = "工作类别")
|
@NotBlank(message = "工作类别不能为空")
|
private String jobCategory;
|
|
/**
|
* 项目地址
|
*/
|
@ApiModelProperty(value = "目的地及相关企业名称等",required = true)
|
@NotBlank(message = "目的地及相关企业名称等")
|
private String projectAddress;
|
|
// /**
|
// * 部门带队人员
|
// */
|
// @ApiModelProperty(value = "处室人员",required = true)
|
// @NotBlank(message = "处室人员不能为空")
|
// private String deptUserName;
|
//
|
// @ApiModelProperty(value = "职务",required = true)
|
// @NotBlank(message = "职务不能为空")
|
// private String postName;
|
|
@ApiModelProperty(value = "处室人员及职务职务",required = true)
|
@NotNull(message = "处室人员及职务职务不能为空")
|
private ProjectDeptPostDTO deptPostName;
|
|
/**
|
* 项目预计开始日期
|
*/
|
@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 = "项目概况")
|
private String remark;
|
}
|