package com.gxwebsoft.hjm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.List;

import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 黄家明_车辆管理
 *
 * @author 科技小王子
 * @since 2025-04-14 16:43:26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(name = "HjmCar对象", description = "黄家明_车辆管理")
public class HjmCar implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(description = "自增ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "车辆名称")
    private String name;

    @Schema(description = "车辆图片")
    private String image;

    @Schema(description = "类型 0汽车 1其他车")
    private Integer type;

    @Schema(description = "管理负责人")
    @TableField(exist = false)
    private String kuaidiAdmin;

    @Schema(description = "车辆编号")
    private String code;

    @Schema(description = "车辆车架号")
    private String vinCode;

    @Schema(description = "司机")
    private Integer driverId;

    @Schema(description = "操作员")
    @TableField(exist = false)
    private String driver;

    @Schema(description = "操作员")
    private String driverName;

    @Schema(description = "操作员电话")
    @TableField(exist = false)
    private String driverPhone;

    @Schema(description = "保险状态")
    private String insuranceStatus;

    @Schema(description = "保单图片")
    private String bdImg;

    @Schema(description = "GPS设备编号")
    private String gpsNo;

    @Schema(description = "电子围栏ID")
    private Integer fenceId;

    @Schema(description = "电子围栏名称")
    private String fenceName;

    @Schema(description = "电子围栏名称")
    @TableField(exist = false)
    private HjmFence fence;

    @Schema(description = "是否在围栏内")
    private Boolean inFence;

    @Schema(description = "位置")
    private String location;

    @Schema(description = "纬度")
    private String latitude;

    @Schema(description = "经度")
    private String longitude;

    @Schema(description = "速度")
    private String speed;

    @Schema(description = "区域")
    private String district;

    @Schema(description = "地址")
    private String address;

    @Schema(description = "组织ID")
    private Integer organizationId;

    @Schema(description = "机构名称")
    private String organizationName;

    @Schema(description = "机构名称")
    @TableField(exist = false)
    private String organization;

    @Schema(description = "父级组织ID")
    private Integer organizationParentId;

    @Schema(description = "父级机构名称")
    private String organizationParentName;

    @Schema(description = "父级机构名称")
    @TableField(exist = false)
    private String parentOrganization;

    @Schema(description = "快递公司管理员")
    @TableField(exist = false)
    private String parentOrganizationAdmin;

    @Schema(description = "微信小程序码")
    private String mpCode;

    @Schema(description = "用户ID")
    private Integer userId;

    @Schema(description = "安装工ID")
    private Integer installerId;

    @Schema(description = "安装时间")
    private String installTime;

    @Schema(description = "接受推送消息的微信openId")
    private String toUser;

    @Schema(description = "排序(数字越小越靠前)")
    private Integer sortNumber;

    @Schema(description = "appId")
    @TableField(exist = false)
    private String appId;

    @Schema(description = "是否认领, 0未认领, 1已认领")
    private Integer claim;

    @Schema(description = "认领时间")
    private String claimTime;

    @Schema(description = "备注")
    private String comments;

    @Schema(description = "状态, 0正常, 1冻结")
    private Integer status;

    @Schema(description = "是否删除, 0否, 1是")
    @TableLogic
    private Integer deleted;

    @Schema(description = "租户id")
    private Integer tenantId;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @Schema(description = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

}
