package com.ruoyi.bst.locationLog.domain;

import java.math.BigDecimal;
import java.time.LocalDateTime;

import org.springframework.format.annotation.DateTimeFormat;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 定位日志对象 bst_location_log
 *
 * @author ruoyi
 * @date 2025-03-24
 */
@Data
public class LocationLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    private Long id;

    @Excel(name = "mac")
    @ApiModelProperty("mac")
    private String mac;

    @Excel(name = "sn")
    @ApiModelProperty("sn")
    private String sn;

    @Excel(name = "onenet接收到的消息")
    @ApiModelProperty("onenet接收到的消息")
    private String onenetMsg;

    @Excel(name = "经度")
    @ApiModelProperty("经度")
    private BigDecimal longitude;

    @Excel(name = "纬度")
    @ApiModelProperty("纬度")
    private BigDecimal latitude;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "onenet消息时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("onenet消息时间")
    private LocalDateTime at;

    @Excel(name = "车辆状态")
    @ApiModelProperty("车辆状态")
    private String status;

    @Excel(name = "锁状态")
    @ApiModelProperty("锁状态")
    private String lockStatus;

    @Excel(name = "电压V")
    @ApiModelProperty("电压V")
    private BigDecimal voltage;

    @Excel(name = "信号强度")
    @ApiModelProperty("信号强度")
    private Integer signal;

    @Excel(name = "卫星数量")
    @ApiModelProperty("卫星数量")
    private Integer satellites;

    @Excel(name = "电门状态")
    @ApiModelProperty("电门状态")
    private String quality;

    @Excel(name = "物联网状态")
    @ApiModelProperty("物联网状态")
    private String iotStatus;

    @Excel(name = "设备ID")
    @ApiModelProperty("设备ID")
    private Long deviceId;

    @Excel(name = "订单ID")
    @ApiModelProperty("订单ID")
    private Long orderId;

    @Excel(name = "类型")
    @ApiModelProperty("类型（1设备定位 2手机定位）") 
    private String type;
    
}
