xiaoyi
3 天以前 b5e1bceabb36fe1d1e5e88397280d12e7044c6dd
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
package cn.iocoder.yudao.module.mes.controller.admin.safety.vo.org;
 
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;
 
/**
 * 安全生产 - 安全组织新增/修改 Request VO
 *
 * @author 超级管理员
 */
@Schema(description = "管理后台 - 安全组织新增/修改 Request VO")
@Data
public class SafetyOrgSaveReqVO {
 
    private Long id;
 
    @Schema(description = "父级编号,0 为顶级", example = "0")
    private Long parentId;
 
    @Schema(description = "组织名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "安全生产委员会")
    @NotBlank(message = "组织名称不能为空")
    @Size(max = 100, message = "组织名称长度不能超过 100 字")
    private String name;
 
    @Schema(description = "负责人(员工编号,关联 hrm_employee)")
    private Long leaderId;
 
    @Schema(description = "成员姓名,逗号分隔")
    @Size(max = 500)
    private String memberNames;
 
    @Schema(description = "安全职责")
    @Size(max = 500)
    private String duty;
 
    @Schema(description = "显示顺序", example = "1")
    @NotNull(message = "显示顺序不能为空")
    private Integer sort;
 
    @Schema(description = "状态:0-启用,1-停用", example = "0")
    @NotNull(message = "状态不能为空")
    private Integer status;
 
    @Schema(description = "备注")
    @Size(max = 500)
    private String remark;
 
}