ServiceOrder.java 2.18 KB
package vion.model;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.github.linpeilie.annotations.AutoMapper;
import io.github.linpeilie.annotations.AutoMappers;
import lombok.Data;
import vion.dto.ServiceOrderDTO;
import vion.vo.ServiceOrderVO;

import java.util.Date;

@Data
@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;

    /** 报修时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date 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)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /** 更新时间 */
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

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

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

    /** 签字时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date signTime;

    /** 完成时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date finishTime;

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

}