xiangpei
2025-04-07 80662b34fe93b4ede00c7fc03fbd9f01355c94e2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
package com.ycl.domain.form;
 
import com.ycl.common.group.Update;
import com.ycl.common.group.Add;
import com.ycl.system.domain.base.AbsForm;
import com.ycl.domain.entity.ProjectPlanExamineRecord;
import org.springframework.beans.BeanUtils;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import org.springframework.lang.NonNull;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;
 
/**
 * 项目审核记录表表单
 *
 * @author lhr
 * @since 2024-11-22
 */
@Data
@ApiModel(value = "ProjectPlanExamineRecord表单", description = "项目审核记录表表单")
public class ProjectPlanExamineRecordForm extends AbsForm {
 
    @NotNull(message = "项目计划记录id不能为空", groups = {Add.class, Update.class})
    @ApiModelProperty("项目计划记录id")
    private Long projectPlanRecordId;
 
    private Long projectPlanInfoId;
 
    @NotNull(message = "上级部门审核人不能为空", groups = {Add.class, Update.class})
    @ApiModelProperty("上级部门审核人")
    private Long departmentUserId;
 
    @NotNull(message = "主管部门审核人不能为空", groups = {Add.class, Update.class})
    @ApiModelProperty("主管部门审核人")
    private Long managerUserId;
 
    @NotNull(message = "上级审核(同意:0,驳回:1)不能为空", groups = {Add.class, Update.class})
    @ApiModelProperty("上级审核(同意:0,驳回:1)")
    private Integer departmentExamine;
 
    @NotBlank(message = "上级批复不能为空", groups = {Add.class, Update.class})
    @ApiModelProperty("上级批复")
    private String departmentApproval;
 
    @NotBlank(message = "上级批复回复不能为空", groups = {Add.class, Update.class})
    @ApiModelProperty("上级批复回复")
    private String departmentApprovalReply;
 
    @NotNull(message = "主管部门审核(同意:0,驳回:1)不能为空", groups = {Add.class, Update.class})
    @ApiModelProperty("主管部门审核(同意:0,驳回:1)")
    private Integer manageExamine;
 
    @NotBlank(message = "主管部门批复不能为空", groups = {Add.class, Update.class})
    @ApiModelProperty("主管部门批复")
    private String manageApproval;
 
    @NotBlank(message = "主管部门批复回复不能为空", groups = {Add.class, Update.class})
    @ApiModelProperty("主管部门批复回复")
    private String manageApprovalReply;
 
    @NotNull(message = "计划上报/延期/进度上报(0/1/2)不能为空", groups = {Add.class, Update.class})
    @ApiModelProperty("计划上报/延期/进度上报(0/1/2)")
    private Integer eventType;
 
    @NotNull(message = "延期开始时间不能为空", groups = {Add.class, Update.class})
    @ApiModelProperty("延期开始时间")
    private Date delayStartTime;
 
    @NotNull(message = "延期结束时间不能为空", groups = {Add.class, Update.class})
    @ApiModelProperty("延期结束时间")
    private Date delayEndTime;
 
    @NotNull(message = "创建时间不能为空", groups = {Add.class, Update.class})
    @ApiModelProperty("创建时间")
    private Date gmtCreateTime;
 
    @NotNull(message = "修改时间不能为空", groups = {Add.class, Update.class})
    @ApiModelProperty("修改时间")
    private Date gmtUpdateTime;
 
    public static ProjectPlanExamineRecord getEntityByForm(@NonNull ProjectPlanExamineRecordForm form, ProjectPlanExamineRecord entity) {
        if(entity == null) {
          entity = new ProjectPlanExamineRecord();
        }
        BeanUtils.copyProperties(form, entity);
        return entity;
    }
 
}