package org.dromara.biz.domain.vo;

import org.dromara.biz.domain.BizTaskWork;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.core.domain.dto.OssDTO;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

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


/**
 * 任务协作单视图对象 biz_task_work
 *
 * @author chenle
 * @date 2025-05-22
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = BizTaskWork.class)
public class BizTaskWorkVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

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

    /**
     * 任务ID
     */
    @ExcelProperty(value = "任务ID")
    private String taskNo;

    /**
     * 单位ID
     */
    @ExcelProperty(value = "单位ID")
    private String deptId;

    /**
     * 单位名称
     */
    @ExcelProperty(value = "单位名称")
    private String deptName;

    /**
     * 警种能力
     */
    @ExcelProperty(value = "警种能力")
    private String capacityId;

    /**
     * 主办人ID
     */
    @ExcelProperty(value = "主办人ID")
    private Long sponsorId;

    /**
     * 主办人名称
     */
    @ExcelProperty(value = "主办人名称")
    private String sponsorName;

    /**
     * 辅办人ID
     */
    @ExcelProperty(value = "辅办人ID")
    private Long assistantId;

    /**
     * 辅办人名称
     */
    @ExcelProperty(value = "辅办人名称")
    private String assistantName;

    /**
     * 工作内容
     */
    @ExcelProperty(value = "工作内容")
    private String workContent;

    /**
     * 状态（1待民警签收，2已签收待反馈，3已反馈）
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "1=待民警签收，2已签收待反馈，3已反馈")
    private String status;

    private Date createTime;

    /**
     * 1,2,3
     */
    private String ossId;

    private List<String> fileUrls;

    private List<String> imageUrls;


    private List<BizTaskFeedbackVo> feedbackList;

    //审批内容
    private String spContent;
    private Date spTime;

    private List<OssDTO> ossList;

}
