实体类

master
liujiaxin 2023-11-23 14:07:18 +08:00
parent 385b5615e8
commit 233ab198e9
27 changed files with 545 additions and 0 deletions

View File

@ -0,0 +1,23 @@
package com.february.common.demo;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
/**
*
*
* @author LiuJiaXin
* @version 2023/11/23 - 9:36
*/
@Data
public class Actuate {
private Integer actuateId;// 驱动机id
private Integer actuateTypeId;//电机型号编号
private String carVin;//车辆VIN
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private Date actuateDate;//出厂日期
}

View File

@ -0,0 +1,18 @@
package com.february.common.demo;
import lombok.Data;
/**
*
*
* @author LiuJiaXin
* @version 2023/11/23 - 13:36
*/
@Data
public class ActuateType {
private Integer actuateTypeId;//电机型号编号
private String actuateTypeName;//电机种类
private String actuateBrandName;//电机品牌名称
private String actuateBasicDetail;//驱动电机基本信息
private String productorName;//生产厂商名称
}

View File

@ -0,0 +1,18 @@
package com.february.common.demo;
import lombok.Data;
/**
*
*
* @author LiuJiaXin
* @version 2023/11/23 - 13:41
*/
@Data
public class Admin {
private Integer adminId;//id
private String adminName;//名字
private String adminPgone;//电话
private String adminPassword;//密码
private Integer adminRole;//角色
}

View File

@ -0,0 +1,30 @@
package com.february.common.demo;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
/**
*
*
* @author LiuJiaXin
* @version 2023/11/23 - 9:43
*/
@Data
public class Battery {
private Integer batteryId;//电池id
private String batteryBh;//电池包编码
private String batteryName;//电池包型号名称
private Integer batteryMakerId;//电池厂家id
private Integer batteryCapacity;//实际容量
private Integer batteryVoltage;//实际电压
private String batteryQuality;//实际损耗
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private Date batteryDate;//出厂时间
private Integer batterysId;//所在车辆电池组id
private String carVin;//所在车辆VIN
}

View File

@ -0,0 +1,15 @@
package com.february.common.demo;
import lombok.Data;
/**
*
*
* @author LiuJiaXin
* @version 2023/11/23 - 11:25
*/
@Data
public class BatteryMaker {
private Integer batteryMakerId;//电池厂家id
private String batteryMakerName;//电池厂家名称
}

View File

@ -0,0 +1,18 @@
package com.february.common.demo;
import lombok.Data;
/**
*
*
* @author LiuJiaXin
* @version 2023/11/23 - 13:39
*/
@Data
public class Batterys {
private Integer batterysId;//车辆电池组id
private String batterysName;//电池组型号名称
private String batterysBh;//电池型号编码
private String batterysCs;//电池组性能参数
private Integer batterysNum;//单体电池个数
}

View File

@ -0,0 +1,23 @@
package com.february.common.demo;
import lombok.Data;
/**
*
*
* @author LiuJiaXin
* @version 2023/11/23 - 9:05
*/
@Data
public class Car {
private Integer carId;//主键id
private String carVin;//车辆vin
private String carBh;//车牌号
private Integer carTypeId;//车型id
private Integer actuateId;//驱动机id
private Integer battery;//电池编号
private Integer batteryMakerId;//电池产家id
private Integer motorManuFacturerId;//电机厂家id
private Integer carStatusId;//车辆状态
private String operatingArea;//运营区域
}

View File

@ -0,0 +1,28 @@
package com.february.common.demo;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
/**
*
*
* @author LiuJiaXin
* @version 2023/11/23 - 13:43
*/
@Data
public class CarStatus {
private Integer carStatusId;//车辆状态id
private Integer isGps;//GPS是否定位
private Integer isExercise;//车辆是否行驶
private Integer isPresenceData;//CAN是否有数据
private String intensity;//GPS信号强弱
private Integer isOnline;//终端是否在线
private Integer restartNum;//终端重启次数
private Integer voltage;//终端常电电压
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private Date offlineTime;//不在线时长(小时)
}

View File

@ -0,0 +1,14 @@
package com.february.common.demo;
import lombok.Data;
/**
*
* @author LiuJiaXin
* @version 2023/11/23 - 11:27
*/
@Data
public class CarType {
private Integer workOrderTypeId;//类型id
private String workOrderTypeName;//类型名字
}

View File

@ -0,0 +1,16 @@
package com.february.common.demo;
import lombok.Data;
/**
*
*
* @author LiuJiaXin
* @version 2023/11/23 - 11:11
*/
@Data
public class City {
private Integer cityId;//市id
private Integer provinceId;//省id
private String cityName;//市名称
}

View File

@ -0,0 +1,16 @@
package com.february.common.demo;
import lombok.Data;
/**
*
*
* @author LiuJiaXin
* @version 2023/11/23 - 11:14
*/
@Data
public class County {
private Integer countyId;//县id
private Integer cityId;//市id
private String countyName;//县名称
}

View File

@ -0,0 +1,24 @@
package com.february.common.demo;
import lombok.Data;
/**
*
*
* @author LiuJiaXin
* @version 2023/11/23 - 10:49
*/
@Data
public class Fault {
private Integer faultId;//主键id
private String faultBh;//故障码
private String faultName;//故障名称
private Integer faultTypeId;//故障类型id
private Integer carId;//车辆id
private Integer actuateId;// 驱动机id
private String faultDetail;//故障描述
private Integer faultRankId;//故障级别id
private Integer isAlarm;//是否产生告警
private Integer respondStyle;//响应方式
private Integer isCreate;//创建工单
}

View File

@ -0,0 +1,41 @@
package com.february.common.demo;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
/**
*
*
* @author LiuJiaXin
* @version 2023/11/23 - 10:57
*/
@Data
public class FaultAlarm {
private Integer faultAlarmId;//车辆故障告警id
private String carBh;//车牌号
private String varVin;//vin码
private String faultAlarmType;//车辆公告型号
private String faultName;//故障名称
private String faultBh;//故障码
private String responseLevel;//响应级别id
private Integer alarmState;//报警状态
private Integer handleStyle;//处理方式
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private Date alarmStartTime;//开始告警时间
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private Date alarmNearTime;// 最近告警时间
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private Date alarmEndTime;//结束时间
private Integer adminId;//管理id
private String faultProcessor;//处理人
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private Date processingTime;//处理时间
private Integer fenceStatus;//状态
}

View File

@ -0,0 +1,15 @@
package com.february.common.demo;
import lombok.Data;
/**
*
*
* @author LiuJiaXin
* @version 2023/11/23 - 13:40
*/
@Data
public class FaultRank {
private Integer faultRankId;//故障级别id
private String faultRankName;//故障级别
}

View File

@ -0,0 +1,15 @@
package com.february.common.demo;
import lombok.Data;
/**
*
*
* @author LiuJiaXin
* @version 2023/11/23 - 13:38
*/
@Data
public class FaultType {
private Integer faultTypeId;//故障类型id
private String faultTypeName;//故障类型
}

View File

@ -0,0 +1,19 @@
package com.february.common.demo;
import lombok.Data;
/**
*
*
* @author LiuJiaXin
* @version 2023/11/23 - 11:03
*/
@Data
public class Frence {
private Integer fenceId;//围栏ID
private String fenceName;//围栏名称
private String longitude;//经度
private String dimensionality;//纬度
private Integer frenceTypeId;//围栏类型
private Integer frenceState;//围栏状态
}

View File

@ -0,0 +1,15 @@
package com.february.common.demo;
import lombok.Data;
/**
*
*
* @author LiuJiaXin
* @version 2023/11/23 - 13:45
*/
@Data
public class FrenceType {
private Integer frenceTypeId;//类型id
private String frenceTypeName;//类型名字
}

View File

@ -0,0 +1,22 @@
package com.february.common.demo;
import lombok.Data;
/**
*
*
* @author LiuJiaXin
* @version 2023/11/23 - 9:40
*/
@Data
public class HistoricalDetail {
private Integer historicalDetailId;//主键id
private Integer historicalTrackId;//轨迹id
private Integer motorSpeed;//电机转速
private Integer instantaneousSpeed;//瞬时功率
private Integer range;//续航里程
private Integer totalMileage;//总里程
private Integer residualElectricity;//SOC%(剩余电量)
private Integer temperature;//监测温度
private Integer batteryId;//电池id
}

View File

@ -0,0 +1,28 @@
package com.february.common.demo;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
/**
*
*
* @author LiuJiaXin
* @version 2023/11/23 - 9:38
*/
@Data
public class HistoricalTrack {
private Integer historicalTrackId;//主键id
private Integer carId;//车辆ID
private String longitude;//经度
private String dimensionality;//纬度
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private Date historicalStartTime;//开始时间
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private Date historicalEndTime;//结束时间
private Integer speed;//速度
}

View File

@ -0,0 +1,28 @@
package com.february.common.demo;
/**
*
*
* @author LiuJiaXin
* @version 2023/11/23 - 13:48
*/
import lombok.Data;
@Data
public class HistoryData {
private Integer historyDataId;//历史数据id
private String carTyajectory;//车辆轨迹
private Integer carSpeed;//车辆转速
private Integer batteryTemperature;//电池温度
private Integer batteryVoltage;//电池电压
private Integer actuateSpeed;//电机转速
private Integer BMSSelfUheckCounter;//BMS自检计数器
private Integer batteryId;//电池id
private Integer gearPosition;//档位
private Integer singleMaximumVoltage;//单次最大电压
private Integer specificFuelConsumption;//燃料消耗率
private Integer insulationResistance;//绝缘电阻
private Integer maximumFeedbackPower;//最大反馈功率
private Integer maximumTemperature;//总体电量最高温度
}

View File

@ -0,0 +1,15 @@
package com.february.common.demo;
import lombok.Data;
/**
*
*
* @author LiuJiaXin
* @version 2023/11/23 - 11:26
*/
@Data
public class MotorManufacturer {
private Integer motorManufacturerId;//电机厂家id
private String motorManufacturerName;//电机厂家name
}

View File

@ -0,0 +1,15 @@
package com.february.common.demo;
import lombok.Data;
/**
*
*
* @author LiuJiaXin
* @version 2023/11/23 - 11:06
*/
@Data
public class Province {
private Integer provinceId;//省id
private String province;//省名称
}

View File

@ -0,0 +1,20 @@
package com.february.common.demo;
import lombok.Data;
/**
*
*
* @author LiuJiaXin
* @version 2023/11/23 - 13:46
*/
@Data
public class RealData {
private Integer realDataId;//实时数据id
private String carVin;//VIN码
private Integer carTypeId;//车辆类型
private Integer fenceId;//电子围栏
private Integer carStatusId;//车辆状态id
private Integer motorManufacturerId;//电机厂商id
private Integer batteryMakerId;//电池厂商id
}

View File

@ -0,0 +1,18 @@
package com.february.common.demo;
import lombok.Data;
/**
*
*
* @author LiuJiaXin
* @version 2023/11/23 - 13:42
*/
@Data
public class User {
private Integer userId;//id
private String userName;//名字
private String userPhone;//电话
private String userPassword;//密码
private String carVin;//VIN
}

View File

@ -0,0 +1,15 @@
package com.february.common.demo;
import lombok.Data;
/**
*
*
* @author LiuJiaXin
* @version 2023/11/23 - 11:29
*/
@Data
public class WorkOrderPriority {
private Integer workOrderPriorityId;//工单优先级id
private String workOrderPriorityName;//工单优先级别
}

View File

@ -0,0 +1,15 @@
package com.february.common.demo;
import lombok.Data;
/**
*
*
* @author LiuJiaXin
* @version 2023/11/23 - 11:31
*/
@Data
public class WorkOrderType {
private Integer workOrderTypeId;//工单类型id
private String workOrderTypeName;//工单类型名称
}

View File

@ -0,0 +1,21 @@
package com.february.common.demo;
import lombok.Data;
/**
*
*
* @author LiuJiaXin
* @version 2023/11/23 - 9:34
*/
@Data
public class WorkerOrder {
private Integer workOrderId;//工单编号
private Integer carId;//车辆id
private Integer workOrderTypeId;//工单类型id
private Integer workOrderPriorityId;//工单优先级id
private String workOrderDescription;//描述
private String workOrderImg;//图片
private Integer customerId;//客户id
private Integer carOwnerId;//车辆负责人id
}