ServiceOrder.java 2.13 KB
package vion.model;

import com.baomidou.mybatisplus.annotation.*;
import io.github.linpeilie.annotations.AutoMapper;
import io.github.linpeilie.annotations.AutoMappers;
import lombok.Getter;
import lombok.Setter;
import vion.dto.ServiceOrderDTO;
import vion.vo.ServiceOrderVO;

import java.time.LocalDateTime;

@Getter
@Setter
@TableName("tbl_service_order")
@AutoMappers({
        @AutoMapper(target = ServiceOrderVO.class),
        @AutoMapper(target = ServiceOrderDTO.class),
})
public class ServiceOrder {
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 项目名称
     */
    private String projectName;

    /**
     * 报修人
     */
    private String submitter;

    /**
     * 报修人手机号码
     */
    private String submitPhone;

    /**
     * 报修时间
     */
    private LocalDateTime submitTime;

    /**
     * 维修人
     */
    private String repairPeople;

    /**
     * 维修人手机号码
     */
    private String repairPhone;

    /**
     * 部门
     */
    private String dept;

    /**
     * 服务方式(1.电话支持 2.远程服务 3.现场服务)
     */
    private Integer serviceType;

    /**
     * 耗时
     */
    private Double time;

    /**
     * 故障内容
     */
    private String faultContent;

    /**
     * 维修结果
     */
    private String repairRes;

    /**
     * 客户评价
     */
    private String review;

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

    /**
     * 服务单状态
     */
    private Integer state;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    /**
     * 五星好评
     */
    private Integer stars;

    /**
     * 签字图片base64
     */
    private String signPic;

    /**
     * 签字时间
     */
    private LocalDateTime signTime;

    /**
     * 完成时间
     */
    private LocalDateTime finishTime;

    /**
     * 唯一id
     */
    private String unid;

}