Commit ee435322 by 杨林龙

1.23.0 开发车辆管理/车辆列表中支新增“车牌号”列的需求

1 parent 15e2f135
......@@ -140,4 +140,8 @@ public class VehicleInfoPageDTO extends BaseOrgDto {
*/
private String permitType;
/**
* 车牌号
*/
private String licensePlate;
}
......@@ -229,4 +229,8 @@ public class VehicleInfoExport extends BaseOrgDto {
@ExcelIgnore
private Long freqCreatedBy;
/**
* 车牌号
*/
private String licensePlate;
}
......@@ -11,7 +11,7 @@ import lombok.Data;
public class VehicleInfoSearch extends BasicSearch {
/**
* 搜索的关键字 车主姓名|车架号|设备号|车型
* 搜索的关键字 车主姓名|车架号|设备号|车牌
*/
private String keywords;
......
......@@ -520,7 +520,8 @@
tv.settle_flag settleFlag,
IFNULL(tw.finished_time, tv.created_date) activateTime,
<!--(SELECT temp.status FROM t_device_freq temp where temp.vehicle_id = tv.id and temp.sn = tvd.sn order by created_date desc limit 1) AS freqStatus,-->
tv.created_by createdBy
tv.created_by createdBy,
tv.license_plate licensePlate
from t_vehicle tv
left join t_vehicle_device tvd on tvd.vehicle_id = tv.id
left join t_workorder tw on tw.id = tv.workorder_id
......@@ -536,8 +537,7 @@
tv.owner_name like '%${keywords}%'
or tv.vin like '%${keywords}%'
or tvd.sn like '%${keywords}%'
or tv.type_name like '%${keywords}%'
or tv.model_name like '%${keywords}%'
or tv.license_plate like '%${keywords}%'
)
</if>
<if test="activateTimeStart != null and activateTimeStart !=''">
......@@ -633,7 +633,8 @@
tv.created_by createdBy,
tu2.username,
tdf.user_type AS userType,
tdf.created_by AS freqCreatedBy
tdf.created_by AS freqCreatedBy,
tv.license_plate AS licensePlate
from t_vehicle tv
left join t_vehicle_device tvd on tvd.vehicle_id = tv.id
left join t_workorder tw on tw.id = tv.workorder_id
......@@ -652,8 +653,7 @@
tv.owner_name like '%${keywords}%'
or tv.vin like '%${keywords}%'
or td.sn like '%${keywords}%'
or tv.type_name like '%${keywords}%'
or tv.model_name like '%${keywords}%'
or tv.license_plate like '%${keywords}%'
)
</if>
<if test="activateTimeStart != null and activateTimeStart !=''">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!