2026-07-02 6e312c64c056acf479a6dd8393dd42a80b69b7d4
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
package cn.iocoder.yudao.module.crm.controller.admin.business.vo.status;
 
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
 
import java.math.BigDecimal;
import java.util.List;
 
@Schema(description = "管理后台 - 商机状态组新增/修改 Request VO")
@Data
public class CrmBusinessStatusSaveReqVO {
 
    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "2934")
    private Long id;
 
    @Schema(description = "状态类型名", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @NotEmpty(message = "状态类型名不能为空")
    private String name;
 
    @Schema(description = "使用的部门编号")
    private List<Long> deptIds;
 
    @Schema(description = "商机状态集合", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "商机状态集合不能为空")
    @Valid
    private List<Status> statuses;
 
    @Data
    public static class Status {
 
        @Schema(description = "状态编号", example = "23899")
        private Long id;
 
        @Schema(description = "状态名", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
        @NotEmpty(message = "状态名不能为空")
        private String name;
 
        @Schema(description = "赢单率", requiredMode = Schema.RequiredMode.REQUIRED, example = "50")
        @NotNull(message = "赢单率不能为空")
        private BigDecimal percent;
 
        @Schema(description = "排序", hidden = true, example = "1")
        private Integer sort;
 
    }
 
}