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.Serializable;
import java.time.LocalDateTime;

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

    /** 任务名称 */
    private String taskName;

    /** 工单id */
    private Long wrkId;

    /** 终端id */
    private Long terminalId;

    /** 联系人 */
    private String storeContact;

    /** 联系电话 */
    private String storePhone;

    /** 终端地址 */
    private String terminalAddress;

    /** 商户名称 */
    private String storeName;

    /** 工单类型 */
    @DictFormat(dictType = "wrk_type")
    private Integer workType;

    /** 上次工单处理时间 */
    @JsonFormat(pattern = DatePattern.NORM_DATETIME_PATTERN)
    private LocalDateTime lastDisposeTime;

    /** 上次工单服务结果 */
    @DictFormat(dictType = "service_results")
    private Integer lastServiceResult;

    /** 领取次数 */
    private Integer numberOfPickups;

    /** 巡检频次 */
    @DictFormat(dictType = "ins_fre")
    private Integer insFre;
}
