package com.wms.entity.table;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.Fastjson2TypeHandler;
import com.wms.entity.app.dto.extend.VehicleDetailInfo;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 载具
 */
@Data
@TableName(value = "tbl_app_vehicle", autoResultMap = true)
public class Vehicle {
    /**
     * 载具编号
     */
    @TableId("vehicle_id")
    private String vehicleId;
    /**
     * 当前所在位置
     */
    @TableField("current_location")
    private String currentLocation;
    /**
     * 载具状态
     */
    @TableField("vehicle_status")
    private Integer vehicleStatus;
    /**
     * 是否是空箱
     */
    @TableField("is_empty")
    private Integer isEmpty;
    /**
     * 载具类型
     */
    @TableField("vehicle_type")
    private String vehicleType;
    /**
     * 额外信息
     */
    @TableField(value = "details", typeHandler = Fastjson2TypeHandler.class)
    private VehicleDetailInfo details;
    /**
     * 上次入库时间
     */
    @TableField("last_in_time")
    private LocalDateTime lastInTime;
}
