Commit 744be824 by 杨林龙

报警查询返回车牌号

1 parent 39759268
...@@ -54,4 +54,10 @@ public class FenceAlarmVO { ...@@ -54,4 +54,10 @@ public class FenceAlarmVO {
*/ */
@ApiModelProperty("车辆ID") @ApiModelProperty("车辆ID")
private Long vehicleId; private Long vehicleId;
/**
* 车牌号
*/
@ApiModelProperty("车牌号")
private String licensePlate;
} }
...@@ -54,4 +54,10 @@ public class OfflineAlarmVO { ...@@ -54,4 +54,10 @@ public class OfflineAlarmVO {
*/ */
@ApiModelProperty("车辆ID") @ApiModelProperty("车辆ID")
private String vehicleId; private String vehicleId;
/**
* 车牌号
*/
@ApiModelProperty("车牌号")
private String licensePlate;
} }
...@@ -54,4 +54,10 @@ public class TrackAlarmVO { ...@@ -54,4 +54,10 @@ public class TrackAlarmVO {
*/ */
@ApiModelProperty("车辆id") @ApiModelProperty("车辆id")
private Long vehicleId; private Long vehicleId;
/**
* 车牌号
*/
@ApiModelProperty("车牌号")
private String licensePlate;
} }
...@@ -45,7 +45,8 @@ ...@@ -45,7 +45,8 @@
tv.vin as vin, tv.vin as vin,
tvd.sn as sn, tvd.sn as sn,
tv.created_date as activeDate, tv.created_date as activeDate,
taef.alarm_time as alarmTime taef.alarm_time as alarmTime,
tv.license_plate as licensePlate
from t_alarm_electric_fence taef from t_alarm_electric_fence taef
left join t_vehicle_device tvd on tvd.id = taef.vd_id left join t_vehicle_device tvd on tvd.id = taef.vd_id
left join t_device td on td.sn = tvd.sn left join t_device td on td.sn = tvd.sn
......
...@@ -32,7 +32,8 @@ ...@@ -32,7 +32,8 @@
tv.vin as vin, tv.vin as vin,
tvd.created_date as activeDate, tvd.created_date as activeDate,
tdl.last_gps_time as lastGpsTime, tdl.last_gps_time as lastGpsTime,
tdl.last_bs_time as lastBsTime tdl.last_bs_time as lastBsTime,
tv.license_plate as licensePlate
from t_vehicle tv from t_vehicle tv
left join t_vehicle_device tvd on tvd.vehicle_id = tv.id left join t_vehicle_device tvd on tvd.vehicle_id = tv.id
left join t_device td on td.sn = tvd.sn left join t_device td on td.sn = tvd.sn
......
...@@ -167,7 +167,8 @@ ...@@ -167,7 +167,8 @@
select tv.id as vehicleId, select tv.id as vehicleId,
tv.owner_name as ownerName, tv.owner_name as ownerName,
tv.vin, tv.vin,
tvd.sn tvd.sn,
tv.license_plate as licensePlate
from t_vehicle tv from t_vehicle tv
left join t_vehicle_device tvd on tvd.vehicle_id = tv.id left join t_vehicle_device tvd on tvd.vehicle_id = tv.id
where tv.del_flag = 0 where tv.del_flag = 0
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!