package org.dromara.zhishu.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.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.zhishu.domain.ExcelTask;

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


/**
 * 任务列表视图对象 t_task_list
 *
 * @author yxy
 * @date 2025-03-21
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = ExcelTask.class)
public class ExcelTaskVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

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

    /**
     * 任务类型 1 发布商品
     */
    @ExcelProperty(value = "任务类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "t_task_type")
    private String taskType;

    /**
     * 店铺id 字符串
     */
    @ExcelProperty(value = "仓库id")
    private String depotIds;

    /**
     * 文件名称
     */
    @ExcelProperty(value = "文件名称")
    private String fileName;

    /**
     * 执行数据条数
     */
    @ExcelProperty(value = "执行数据条数")
    private Long dataNum;

    /**
     * 任务状态
     */
    @ExcelProperty(value = "任务状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "t_task_status")
    private String taskStatus;

    /**
     * 状态（0正常 1停用）
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=正常,1=停用")
    private String status;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 线程id
     */
    private Long threadId;

    /**
     * 用户id
     */
    private Long userId;
}
