TaskVO.java 3.19 KB
package vion.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.github.liaochong.myexcel.core.annotation.ExcelColumn;
import com.github.liaochong.myexcel.core.annotation.ExcelModel;
import lombok.Getter;
import lombok.Setter;
import vion.config.FaultTypeConverter;
import vion.config.UserNameConverter;
import vion.model.FaultLog;
import vion.model.FileInfo;
import vion.model.ServiceOrder;

import java.util.Date;
import java.util.List;

@Getter
@Setter
@ExcelModel(sheetName = "任务", includeAllField = false)
public class TaskVO {
    private Long id;
    /**
     * 门店id
     */
    private Long storeId;
    /**
     * 门店名称
     */
    @ExcelColumn(title = "项目名称")
    private String storeName;

    private Integer salesperson;

    private String maintainStatus;
    /**
     * 预处理工单id
     */
    private Long taskTempId;
    /**
     * 报修日期
     */
    @ExcelColumn(order = 5, title = "提交时间", format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date repairTime;
    /**
     * 故障类型
     */
    @ExcelColumn(order = 2, title = "故障类型", writeConverter = FaultTypeConverter.class)
    private Integer faultType;
    /**
     * 故障说明
     */
    @ExcelColumn(order = 3, title = "故障说明")
    private String faultDescription;
    /**
     * 报修人
     */
    @ExcelColumn(order = 1, title = "客户姓名")
    private String repairPeople;
    /**
     * 报修人联系方式
     */
    @ExcelColumn(order = 4, title = "联系方式")
    private String repairPhone;
    /**
     * 状态:0待确认1进行中2已完成3挂起
     */
    @ExcelColumn(order = 6, title = "状态", mapping = "0:待确认,1:进行中,2:进行中,3:已完成,4:挂起,5:已关闭")
    private Integer status;
    /**
     * 解决日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date solveDate;
    /**
     * 故障原因
     */
    private String faultReason;
    /**
     * 解决措施:0产品BUG、1使用问题、2需求问题
     */
    private Integer solveType;
    /**
     * 解决故障描述
     */
    private String solveDescription;
    /**
     * 创建者
     */
    private Long createUser;
    /**
     * 当前处理人
     */
    @ExcelColumn(order = 7, title = "当前指派", writeConverter = UserNameConverter.class)
    private Long activeUser;
    /**
     * 截止日期
     */
    @ExcelColumn(order = 8, title = "截止日期", format = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date expDate;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date modifyTime;
    /**
     * 备注
     */
    private String remark;
    /**
     * uuid
     */
    private String uuid;

    /**
     * 邮箱地址
     */
    private String email;
    /**
     * 集团id
     */
    private Long accountId;
    // 集团名字
    private String accountName;
    private List<FileInfo> fileList;
    private ServiceOrder serviceOrder;

    private List<FaultLog> faultLogList;
}