liu
9 小时以前 5d34bdd3c426bb2ca5f6627424ae67984f745603
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
package cn.iocoder.yudao.module.research.controller.admin.application.vo;
 
import cn.iocoder.yudao.module.research.controller.admin.application.vo.member.ResearchApplicationMemberSaveReqVO;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import jakarta.validation.constraints.PositiveOrZero;
import lombok.Data;
 
import java.math.BigDecimal;
import java.util.List;
 
@Schema(description = "管理后台 - 课题申报书新增/修改 Request VO")
@Data
public class ResearchApplicationSaveReqVO {
 
    @Schema(description = "编号", example = "1")
    private Long id;
 
    @Schema(description = "所属课题指南 ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "所属课题指南不能为空")
    private Long guidelineId;
 
    @Schema(description = "课题名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "智能制造产线数字孪生关键技术研究")
    @NotEmpty(message = "课题名称不能为空")
    private String title;
 
    @Schema(description = "申报会员 ID(关联 ums_member)", example = "1")
    private Long memberId;
 
    @Schema(description = "申报人姓名/单位名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @NotEmpty(message = "申报人姓名不能为空")
    private String applicantName;
 
    @Schema(description = "工作单位", example = "XX大学")
    private String workUnit;
 
    @Schema(description = "职称", example = "教授")
    private String jobTitle;
 
    @Schema(description = "联系电话(必填,11 位手机号)", requiredMode = Schema.RequiredMode.REQUIRED,
            example = "13800138000")
    @NotBlank(message = "联系电话不能为空")
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "联系电话格式不正确,请输入正确的 11 位手机号")
    private String contactPhone;
 
    @Schema(description = "联系邮箱", example = "zhangsan@example.com")
    private String contactEmail;
 
    @Schema(description = "课题组成员(旧版文本字段,仅保留兼容;新数据请使用 members)")
    private String teamMembers;
 
    @Schema(description = "课题组成员列表(子表)")
    @Valid
    private List<ResearchApplicationMemberSaveReqVO> members;
 
    @Schema(description = "申请经费(元)", example = "100000.00")
    @PositiveOrZero(message = "申请经费不能为负数")
    private BigDecimal budgetAmount;
 
    @Schema(description = "申报书正文(研究背景/目标/方案/预期成果)")
    private String planContent;
 
    @Schema(description = "备注", example = "依托单位已同意申报")
    private String remark;
 
    @Schema(description = "附件BlobId列表")
    private List<Long> blobIds;
 
}