TaskTemp.java 2.21 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.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;
import vion.dto.TaskTempDTO;
import vion.vo.TaskTempVO;

import java.time.LocalDateTime;

@Getter
@Setter
@TableName(value = "tbl_task_temp")
@AutoMappers({
        @AutoMapper(target = TaskTempVO.class),
        @AutoMapper(target = TaskTempDTO.class),
})
public class TaskTemp {
    @TableId(type = IdType.AUTO)
    private Long id;
    /**
     * 项目id
     */
    private Long storeId;
    /**
     * 项目名称(用户提交的名称)
     */
    @TableField(condition = SqlCondition.LIKE)
    private String storeName;
    /**
     * 报修时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @OrderBy(sort = 2)
    private LocalDateTime repairTime;

    /**
     * 故障说明
     */
    private String faultDescription;
    /**
     * 报修人
     */
    @TableField(condition = SqlCondition.LIKE)
    private String repairPeople;
    /**
     * 联系方式
     */
    @TableField(condition = SqlCondition.LIKE)
    private String repairPhone;
    /**
     * 状态(1待确认、2进行中、3已确认)
     */
    @OrderBy(asc = true, sort = 1)
    private Integer status;
    /**
     * 操作人
     */
    private Long operator;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @TableField(value = "modify_time", fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime modifyTime;

    /**
     * 备注
     */
    private String remark;

    /**
     * 工程师姓名
     */
    private String engineerName;

    /**
     * 邮箱地址
     */
    private String email;

    /**
     * 微信用户id
     */
    private String openid;
}