Commit 27ab41e0 by 向延琳

增加车牌号返回

1 parent 39759268
...@@ -41,6 +41,11 @@ public class DevicePowerDO implements Serializable { ...@@ -41,6 +41,11 @@ public class DevicePowerDO implements Serializable {
private String vehicleId; private String vehicleId;
/** /**
* 车牌号
*/
private String licensePlate;
/**
* 当前电量 * 当前电量
*/ */
private Integer soc; private Integer soc;
......
...@@ -48,4 +48,10 @@ public class LowPowerVO implements Serializable { ...@@ -48,4 +48,10 @@ public class LowPowerVO implements Serializable {
*/ */
@ApiModelProperty("车辆ID") @ApiModelProperty("车辆ID")
private Long vehicleId; private Long vehicleId;
/**
* 车牌号
*/
@ApiModelProperty("车牌号")
private String licensePlate;
} }
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
<result column="owner_name" jdbcType="TINYINT" property="ownerName"/> <result column="owner_name" jdbcType="TINYINT" property="ownerName"/>
<result column="vin" jdbcType="TIMESTAMP" property="vin"/> <result column="vin" jdbcType="TIMESTAMP" property="vin"/>
<result column="id" jdbcType="INTEGER" property="vehicleId"/> <result column="id" jdbcType="INTEGER" property="vehicleId"/>
<result column="license_plate" jdbcType="VARCHAR" property="licensePlate"/>
</resultMap> </resultMap>
...@@ -85,6 +86,7 @@ ...@@ -85,6 +86,7 @@
tv.owner_name, tv.owner_name,
tv.vin, tv.vin,
tv.id, tv.id,
tv.license_plate,
tdp.alarm_time tdp.alarm_time
from t_device_power tdp from t_device_power tdp
left join t_vehicle_device tvd on tvd.id = tdp.vd_id left join t_vehicle_device tvd on tvd.id = tdp.vd_id
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!