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;
|
}
|
}
|