80 lines
2.1 KiB
Java
80 lines
2.1 KiB
Java
package com.muyu.domain;
|
|
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
|
import com.baomidou.mybatisplus.annotation.TableId;
|
|
import com.baomidou.mybatisplus.annotation.TableName;
|
|
import com.muyu.common.core.web.domain.BaseEntity;
|
|
import lombok.AllArgsConstructor;
|
|
import lombok.Data;
|
|
import lombok.EqualsAndHashCode;
|
|
import lombok.NoArgsConstructor;
|
|
import lombok.experimental.SuperBuilder;
|
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
|
|
|
/**
|
|
* 车辆基础信息对象 sys_car
|
|
*
|
|
* @author Li HD
|
|
* @date 2024-09-18
|
|
*/
|
|
|
|
@EqualsAndHashCode(callSuper = true)
|
|
@Data
|
|
@SuperBuilder
|
|
@NoArgsConstructor
|
|
@AllArgsConstructor
|
|
@TableName(value = "sys_car", autoResultMap = true)
|
|
public class SysCar extends BaseEntity{
|
|
|
|
/** 自增主键 */
|
|
@TableId( type = IdType.AUTO)
|
|
private Long id;
|
|
|
|
/** 车辆VIN码 */
|
|
private String carVin;
|
|
|
|
/** 车辆车牌号 */
|
|
private String carPlate;
|
|
|
|
/** 车辆品牌 */
|
|
private String carBrand;
|
|
|
|
/** 车辆型号 */
|
|
private String carModel;
|
|
|
|
/** 车辆类型 */
|
|
private Integer carType;
|
|
|
|
/** 策略ID */
|
|
private Integer warnStrategy;
|
|
|
|
/** 围栏组编码 */
|
|
private String groupCode;
|
|
|
|
/** 启用状态(1.在线 2.离线 3.已断开 4.待连接 5.维修中) */
|
|
private Integer state;
|
|
|
|
|
|
|
|
@Override
|
|
public String toString() {
|
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
|
.append("id", getId())
|
|
.append("carVin", getCarVin())
|
|
.append("carPlate", getCarPlate())
|
|
.append("carBrand", getCarBrand())
|
|
.append("carModel", getCarModel())
|
|
.append("carType", getCarType())
|
|
.append("warnStrategy", getWarnStrategy())
|
|
.append("groupCode", getGroupCode())
|
|
.append("state", getState())
|
|
.append("createBy", getCreateBy())
|
|
.append("createTime", getCreateTime())
|
|
.append("updateBy", getUpdateBy())
|
|
.append("updateTime", getUpdateTime())
|
|
.append("remark", getRemark())
|
|
.toString();
|
|
}
|
|
}
|