package com.chushang.inspection.work.vo;

import cn.hutool.core.date.DatePattern;
import com.chushang.common.dict.annotation.DictFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class WrkDispatchVO implements Serializable {

    /**
     * wrkId
     */
    private Long wrkId;

    /**
     * 业务员名称
     */
    private String userName;

    /**
     * 业务员名称
     */
    private Long userId;
    /**
     * 部门id
     */
    private Long deptId;
    /**
     * 所属部门
     */
    private String deptName;
    private Long storeId;
    /**
     * 商户名称
     */
    private String storeName;
    /**
     * 商户编号
     */
    private String storeNo;
    /**
     * 终端编号
     */
    private String terminalNo;
    private String terminalSn;
    @DictFormat(dictType = "terminal_type")
    private Integer terminalType;
    /**
     * 终端型号
     */
    private String terminalModel;
    private Long terminalId;
    /**
     * 工单类型
     */
    @DictFormat(dictType = "wrk_type")
    private Integer workType;
    /**
     * 工单编号
     */
    private String workNo;
    /**
     * 工单优先级
     */
    @DictFormat(dictType = "wrk_priority")
    private Integer workSort;
    /**
     * 备注
     */
    private String remark;
    /**
     * 截至时间
     */
    @JsonFormat(pattern = DatePattern.NORM_DATETIME_PATTERN)
    private LocalDateTime endTime;
    /**
     * 派单时间
     */
    @JsonFormat(pattern = DatePattern.NORM_DATETIME_PATTERN)
    private LocalDateTime createTime;
    /**
     * 派单人
     */
    private String createBy;
    /**
     * 建档时间
     */
    @JsonFormat(pattern = DatePattern.NORM_DATETIME_PATTERN)
    private LocalDateTime registerTime;
    @Serial
    private static final long serialVersionUID = 1L;
}
