package org.jeecg.modules.workOrder.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecg.modules.regular.entity.Regular;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.List;

@Data
public class WorkOrderDto {
    private String id;
    @ApiModelProperty(value = "工单类型")
    private java.lang.Integer modelType;
    @ApiModelProperty(value = "检修计划/维修计划")
    private java.lang.String planId;
    @ApiModelProperty(value = "设备")
    @Dict(dictTable = "bu_device",dicText = "device_name",dicCode = "id")
    private java.lang.String deviceId;
    @ApiModelProperty(value = "修程/故障类型")
    private java.lang.String regularId;
    @ApiModelProperty(value = "工单状态")
    @Dict(dicCode = "work_order_status")
    private java.lang.Integer status;
    @ApiModelProperty(value = "工单配合人")
    @Dict(dictTable = "sys_user",dicText = "realname",dicCode = "id")
    private java.lang.String executor;
    @ApiModelProperty(value = "工单负责人")
    @Dict(dictTable = "sys_user",dicText = "realname",dicCode = "id")
    private java.lang.String coordinator;
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "开工时间")
    private java.util.Date startTime;
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "完工时间")
    private java.util.Date finishTime;
    @ApiModelProperty(value = "备注")
    private java.lang.String remark;
    @ApiModelProperty(value = "审核员1")
    @Dict(dictTable = "sys_user",dicText = "realname",dicCode = "id")
    private java.lang.String review1;
    @ApiModelProperty(value = "审核员2")
    @Dict(dictTable = "sys_user",dicText = "realname",dicCode = "id")
    private java.lang.String review2;
    @ApiModelProperty(value = "审核员3")
    @Dict(dictTable = "sys_user",dicText = "realname",dicCode = "id")
    private java.lang.String review3;
    @ApiModelProperty(value = "审核员4")
    @Dict(dictTable = "sys_user",dicText = "realname",dicCode = "id")
    private java.lang.String review4;
    @ApiModelProperty(value = "设备是否可交付使用")
    @Dict(dicCode = "yn")
    private java.lang.Integer isDeliverable;

    private Regular regular;
    private List<WorkOrderDetailModel> workOrderDetailModels;
}
