Task.java 2.51 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.TaskDTO;
import vion.vo.TaskVO;

import java.util.Date;

@Getter
@Setter
@TableName(value="tbl_task_info")
@AutoMappers({
        @AutoMapper(target = TaskVO.class),
        @AutoMapper(target = TaskDTO.class),
})
public class Task {
    /** 自增列 */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /** 门店id */
    private Long storeId;
    /** 报修日期 */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @OrderBy(sort = 2)
    private Date repairTime;
    /** 故障类型 */
    private Integer faultType;
    /** 故障说明 */
    private String faultDescription;
    /** 报修人 */
    @TableField(condition = SqlCondition.LIKE)
    private String repairPeople;
    /** 报修人联系方式 */
    @TableField(condition = SqlCondition.LIKE)
    private String repairPhone;
    /** 状态 */
    @OrderBy(asc = true, sort = 1)
    private Integer status;
    /** 解决日期 */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @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;
    /** 当前处理人 */
    private Long activeUser;
    /** 截止日期 */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date expDate;

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

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

    /** 备注 */
    private String remark;
    /** 集团id */
    private Long accountId;
    private String uuid;
    /** 预工单id */
    private Long taskTempId;
    /**
     * 邮箱地址
     */
    private String email;
}