package com.chushang.inspection.work.vo;

import com.chushang.common.dict.annotation.DictFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;

/**
 * @auther: zhao
 * @date: 2024/6/25 11:31
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class WrkInfoPhoneVO implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    /**
     * 工单编号
     */
    private Long wrkNo;
    /**
     * 商户id
     */
    private Long storeId;
    /**
     * 商户编号
     */
    private Long storeNo;
    /**
     * 商户名称
     * storeId -- store
     */
    private String storeName;
    /**
     * 终端id
     */
    private Long terminalId;
    /**
     * terminal_no
     */
    private Long terminalNo;
    /**
     * 终端类型
     *  selfField = "terminalId",
     *             targetTable = "terminal",
     */
    @DictFormat(dictType = "terminal_type")
    private Integer terminalType;
    /**
     * 用户id
     */
    private Long userId;
    /**
     * 用户名称
     */
    private String userName;
    /**
     * 工单来源 -- 默认
     */
    private Integer workSource;
    /**
     * wrk_result 巡检结果
     */
    private String wrkResult;
    /**
     * 具体说明
     */
    private String wrkSpecificResult;
    /**
     * 具体详细说明
     */
    private String wrkDetailResult;
    /**
     * 总任务id
     */
    private Long taskId;
    /**
     * 顶级任务
     *           selfField = "taskId",
     *             targetTable = "polling_task",
     */
    private String taskName;
    /**
     * 本级id
     *         selfField = "lowerTaskId",
     *             targetTable = "polling_task",
     */
    private Long lowerTaskId;
    /**
     * 下级任务
     */
    private String lowerTaskName;
    /**
     * 租户id
     */
    private Long tenantId;
    /**
     * 工单状态, 只分为 0和1, 0 未巡检, 1 已巡检
     */
    private Integer wrkStatus;

}
