package com.chushang.inspection.work.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.chushang.common.mybatis.base.BaseEntity;

import java.time.LocalDateTime;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
  * @auther: zhao
  * @date: 2024/6/26 17:26
  */
/**
 * 电话巡检工单信息
 */
@Data
@EqualsAndHashCode(callSuper=true)
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "wrk_info_phone")
public class WrkInfoPhone extends BaseEntity {
    /**
     * 主键id
     */
    @TableId(value = "wrk_id", type = IdType.ASSIGN_ID)
    private Long wrkId;

    /**
     * 工单编号
     */
    @TableField(value = "wrk_no")
    private String wrkNo;

    /**
     * 商户id
     */
    @TableField(value = "store_id")
    private Long storeId;

    /**
     * 商户编号
     */
    @TableField(value = "store_no")
    private String storeNo;

    @TableField(value = "store_name")
    private String storeName;

    /**
     * 终端id
     */
    @TableField(value = "terminal_id")
    private Long terminalId;

    /**
     * 终端编号
     */
    @TableField(value = "terminal_no")
    private String terminalNo;
    /**
     * 终端类型
     */
    @TableField(value = "terminal_type")
    private Integer terminalType;

    /**
     * 业务员id
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 业务员名字
     */
    @TableField(value = "user_name")
    private String userName;

    /**
     * 工单来源
     */
    @TableField(value = "work_source")
    private Integer workSource;

    /**
     * 巡检结果
     */
    @TableField(value = "wrk_result")
    private String wrkResult;

    /**
     * 具体说明
     */
    @TableField(value = "wrk_specific_result")
    private String wrkSpecificResult;

    /**
     * 具体详细说明
     */
    @TableField(value = "wrk_detail_result")
    private String wrkDetailResult;

    /**
     * 总任务id
     */
    @TableField(value = "task_id")
    private Long taskId;
    @TableField(value = "task_name")
    private String taskName;

    /**
     * 本级id
     */
    @TableField(value = "lower_task_id")
    private Long lowerTaskId;
    @TableField(value = "lower_task_name")
    private String lowerTaskName;

    /**
     * 租户id
     */
    @TableField(value = "dept_id")
    private Long deptId;

    /**
     * 工单状态, 默认为已巡检
     */
    @TableField(value = "wrk_status")
    private Integer wrkStatus;

    /**
     * 处理时间--在工单上已经巡检时, 取处理司时间, 否则未巡检
     */
    @TableField(value = "dispose_time")
    private LocalDateTime disposeTime;


}
