Commit e975b2e9 authored by jiaorz's avatar jiaorz

添加根据预定记录ID获取出行记录接口

parent ae536326
...@@ -59,4 +59,6 @@ public class VehicleBookRecordQueryVo extends PageParam { ...@@ -59,4 +59,6 @@ public class VehicleBookRecordQueryVo extends PageParam {
private List<Integer> companyIds; private List<Integer> companyIds;
private String upkeepIds; private String upkeepIds;
private Integer userCompany; private Integer userCompany;
private Integer zoneId;
} }
\ No newline at end of file
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
SELECT r.* FROM ( SELECT r.* FROM (
select DISTINCT v.`id`, select DISTINCT v.`id`,
v.`code`, v.`code`,
(CASE WHEN #{status} != null THEN #{status} (CASE WHEN #{status} is not null THEN #{status}
ELSE v.status END) status , ELSE v.status END) status ,
v.number_plate, v.number_plate,
v.brand, v.brand,
...@@ -179,7 +179,7 @@ ...@@ -179,7 +179,7 @@
SELECT r.* FROM ( SELECT r.* FROM (
select DISTINCT v.`id`, select DISTINCT v.`id`,
v.`code`, v.`code`,
(CASE WHEN #{status} != null THEN #{status} (CASE WHEN #{status} is not null THEN #{status}
ELSE v.status END) status , ELSE v.status END) status ,
v.number_plate, v.number_plate,
v.brand, v.brand,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment