package org.dromara.work.domain.vo;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import org.dromara.work.domain.TpOrderRecord;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 操作历史视图对象 tp_order_record
 *
 * @author Maosw
 * @date 2024-08-12
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = TpOrderRecord.class)
public class TpOrderRecordVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @ExcelProperty(value = "ID")
    private Long id;

    /**
     * 所属订单
     */
    @ExcelProperty(value = "所属订单")
    private Long oid;

    /**
     * 操作类型
     */
    @ExcelProperty(value = "操作类型")
    private String type;

    /**
     * 操作内容
     */
    @ExcelProperty(value = "操作内容")
    private String content;

    /**
     * 操作人
     */
    @ExcelProperty(value = "操作人")
    private Long addUser;

    /**
     * 操作人姓名
     */
    @ExcelProperty(value = "操作人姓名")
    private String addUserName;

    /**
     * 操作时间
     */
    @ExcelProperty(value = "操作时间")
    private Date addTime;

    /**
     * 操作状态（1=记录，2=节点）
     */
    @ExcelProperty(value = "操作状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "1==记录，2=节点")
    private Long state;

    /**
     * json记录
     */
    private String record;


}
