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 lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @auther: zhao
 * @date: 2024/7/3 11:31
 */
@Data
@EqualsAndHashCode(callSuper=true)
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "wrk_info_terminal_ins_record")
public class WrkInfoTerminalInsRecord extends BaseEntity {
    /**
     * 工单id
     */
    @TableId(value = "wrk_id", type = IdType.INPUT)
    private Long wrkId;
    /**
     * 主键
     */
    @TableField(value = "terminal_id")
    private Long terminalId;
    /**
     * 所属商户id
     */
    @TableField(value = "store_id")
    private Long storeId;

    /**
     * 银行资产管理码
     */
    @TableField(value = "management_code")
    private String managementCode;

    /**
     * 地理位置信息
     */
    @TableField(value = "geographic_location")
    private String geographicLocation;

    /**
     * 地理位置信息地址
     */
    @TableField(value = "geographic_address")
    private String geographicAddress;

    /**
     * 巡检位置信息
     */
    @TableField(value = "work_location")
    private String workLocation;

    /**
     * 巡检位置信息
     */
    @TableField(value = "work_address")
    private String workAddress;

    /**
     * 偏差（直线距离 米）
     */
    @TableField(value = "deviation")
    private Long deviation;

    /**
     * 入库时间
     */
    @TableField(value = "storage_time")
    private LocalDateTime storageTime;

    /**
     * 出库时间
     */
    @TableField(value = "delivery_time")
    private LocalDateTime deliveryTime;

    /**
     * 出库原因
     */
    @TableField(value = "reason_for_shipment")
    private Integer reasonForShipment;

    /**
     * 操作员编号
     */
    @TableField(value = "operator_id")
    private String operatorId;

    /**
     * 预制码编码
     */
    @TableField(value = "pre_code_encoding")
    private String preCodeEncoding;

    /**
     * 是否为业务员录入（1是  2否）
     */
    @TableField(value = "is_enter")
    private Integer isEnter;

    /**
     * 上次服务结果
     */
    @TableField(value = "service_result")
    private Integer serviceResult;

    /**
     * 审核通过次数
     */
    @TableField(value = "times_pass")
    private Integer timesPass;

    /**
     * 巡检状态 1 已巡检 2 未巡检
     */
    @TableField(value = "inspection_status")
    private Integer inspectionStatus;

    /**
     * 巡检时间（上次业务员处理时间）
     */
    @TableField(value = "inspection_time")
    private LocalDateTime inspectionTime;
}
