zxl
2025-12-11 ad7cbfd8fd19fcce4345a4907c1f059a34c2869b
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
package com.ycl.domain.form;
 
 
import com.ycl.domain.entity.AuditHistory;
import com.ycl.domain.entity.WorkStationSchedule;
import com.ycl.system.domain.base.AbsForm;
import lombok.Data;
import org.springframework.beans.BeanUtils;
import org.springframework.lang.NonNull;
 
/**
 * nongtou-project-java
 *
 * @author : zxl
 * @date : 2025-12-11 10:19
 **/
@Data
public class AuditHistoryForm extends AbsForm {
 
    /**
     * 任务id
     */
    private String taskId;
    /**
     * 任务key
     */
    private String taskDefinitionKey;
    /**
     * 查看人id
     */
    private String viewer;
    /**
     * 提交人部门
     */
    private String commitDept;
    /**
     * 1:提交,2:审核,3:驳回,4:转交
     * @see com.ycl.common.enums.business.AuditTypeEnum
     */
    private String auditType;
    /**
     * 是否阅读(0:未读,1:已读)
     */
    private String isRead;
    /**
     * 业务id
     */
    private String businessKey;
    /**
     * 业务表
     */
    private String businessTable;
    /**
     * 内容(节点名称)
     */
    private String content;
 
    public static AuditHistory getEntityByForm(@NonNull AuditHistoryForm form, AuditHistory entity) {
        if(entity == null) {
            entity = new AuditHistory();
        }
        BeanUtils.copyProperties(form, entity);
        return entity;
    }
}