lyh
2 天以前 d61b21c50e62298f185ecafa8e0b22f7ee8c4973
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package org.jeecg.modules.eam.dto;
 
import lombok.Data;
import lombok.experimental.Accessors;
 
@Data
@Accessors(chain = true)
public class WeeklyResponsibleInfo {
    /** 操作员姓名数组 (1-5周) */
    private String[] operators = new String[5];
 
    /** 确认人姓名数组 (1-5周) */
    private String[] confirmUsers = new String[5];
 
    /**
     * 设置某周的责任人信息
     */
    public void setResponsibleForWeek(int week, String operator, String confirmUser) {
        if (week >= 1 && week <= 5) {
            operators[week - 1] = operator;
            confirmUsers[week - 1] = confirmUser;
        }
    }
}