package com.storlead.sales.pojo.dto.excel;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @program: sp-sales-platform
 * @description:
 * @author: chenkq
 * @create: 2024-06-27 17:37
 */
public class WorkOrderExcelVerifyEntity extends ExcelVerifyEntityOfMode {

    @Excel(name = "关联客户")
    private String customerName;

    @Excel(name = "订单")
    private String orderFormName;

    @Excel(name = "联系")
    private String liaisonName;

    @Excel(name = "工单标题")
    private String title;

    @Excel(name = "工单内容")
    private String content;

    @Excel(name = "工单类型id")
    private String workOrderCategoryName;

    @Excel(name = "工单紧急状态：1:非常紧急，2:紧急，3:一")
    private String urgentStatusName;

    @Excel(name = "工单的状态：1待处理，2已撤销�?被退回，4已完成，5已确")
    private String orderStatusName;

    @Excel(name = "归属人员")
    private String ownerByName;

    @ApiModelProperty(value = "关联客户ID")
    private Long customerId;

    @ApiModelProperty(value = "订单ID")
    private Long orderFormId;

    @ApiModelProperty(value = "联系人ID")
    private Long liaisonId;
    @ApiModelProperty(value = "期望完成时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JSONField(format ="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime expectTime;

    @ApiModelProperty(value = "实际完成时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JSONField(format ="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime actualTime;

//    @ApiModelProperty(value = "提醒用户id，逗号隔开")
    private String remindUserIds;

    @ApiModelProperty(value = "最后处理人id")
    private Integer currentUserId;

    @ApiModelProperty(value = "最后处理人")
    private String currentUserName;

    @ApiModelProperty(value = "工单类型id")
    private Integer workOrderCategoryId;

    @ApiModelProperty(value = "工单紧急状态：1:非常紧急，2:紧急，3:一")
    private Integer urgentStatus;

    @ApiModelProperty(value = "工单的状态：1待处理，2已撤销�?被退回，4已完成，5已确")
    private Integer orderStatus;

    @ApiModelProperty(value = "订单发起次数")
    private Integer orderCount;

    @ApiModelProperty(value = "退回原因备")
    private String remark;

    @ApiModelProperty(value = "撤销、拒绝时")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JSONField(format ="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime revokeTime;

    @ApiModelProperty(value = "工单来源")
    private String orderFrom;

    @ApiModelProperty(value = "再次发起说明")
    private String orderAgain;

    @ApiModelProperty(value = "附件idList")
    private List<Long> resourceIdList;
}
