44 lines
976 B
Java
44 lines
976 B
Java
package com.label.entity;
|
||
|
||
import com.baomidou.mybatisplus.annotation.IdType;
|
||
import com.baomidou.mybatisplus.annotation.TableId;
|
||
import com.baomidou.mybatisplus.annotation.TableName;
|
||
import lombok.Builder;
|
||
import lombok.Data;
|
||
|
||
import java.time.LocalDateTime;
|
||
|
||
/**
|
||
* 任务状态历史,对应 annotation_task_history 表(仅追加,无 UPDATE/DELETE)。
|
||
*/
|
||
@Data
|
||
@Builder
|
||
@TableName("annotation_task_history")
|
||
public class AnnotationTaskHistory {
|
||
|
||
@TableId(type = IdType.AUTO)
|
||
private Long id;
|
||
|
||
private Long taskId;
|
||
|
||
/** 所属公司(多租户键) */
|
||
private Long companyId;
|
||
|
||
/** 转换前状态(首次插入时为 null) */
|
||
private String fromStatus;
|
||
|
||
/** 转换后状态 */
|
||
private String toStatus;
|
||
|
||
/** 操作人 ID */
|
||
private Long operatorId;
|
||
|
||
/** 操作人角色 */
|
||
private String operatorRole;
|
||
|
||
/** 备注(驳回原因等) */
|
||
private String comment;
|
||
|
||
private LocalDateTime createdAt;
|
||
}
|