Commit 6b744cf9 authored by unset's avatar unset

修改车辆信息

parent a639a3e7
...@@ -5,7 +5,6 @@ import com.github.wxiaoqi.security.admin.entity.BaseUserMemberLevel; ...@@ -5,7 +5,6 @@ import com.github.wxiaoqi.security.admin.entity.BaseUserMemberLevel;
import com.github.wxiaoqi.security.auth.client.annotation.IgnoreClientToken; import com.github.wxiaoqi.security.auth.client.annotation.IgnoreClientToken;
import com.github.wxiaoqi.security.common.msg.ObjectRestResponse; import com.github.wxiaoqi.security.common.msg.ObjectRestResponse;
import com.github.wxiaoqi.security.common.rest.BaseController; import com.github.wxiaoqi.security.common.rest.BaseController;
import io.swagger.models.auth.In;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import tk.mybatis.mapper.entity.Example; import tk.mybatis.mapper.entity.Example;
......
...@@ -56,7 +56,10 @@ public class ResultVehicleVo { ...@@ -56,7 +56,10 @@ public class ResultVehicleVo {
*/ */
private String parkBranchCompanyName; private String parkBranchCompanyName;
/**
* 所属公司名称
*/
private String companyName;
/** /**
* 目的地分支机构(id) * 目的地分支机构(id)
......
...@@ -88,6 +88,10 @@ public class VehicleExcelVo { ...@@ -88,6 +88,10 @@ public class VehicleExcelVo {
private String insuranceNo; private String insuranceNo;
/**
* 所属公司名称
*/
private String companyName;
/** /**
......
...@@ -76,6 +76,7 @@ ...@@ -76,6 +76,7 @@
v.vehicle_inner_status, v.vehicle_inner_status,
v.mileage_last_update as mileage, v.mileage_last_update as mileage,
c.val as useTypeName, c.val as useTypeName,
ci.name as companyName,
vm.name as vehicleType vm.name as vehicleType
<if test=" yearMonthAndParam != null "> <if test=" yearMonthAndParam != null ">
,vbi.booked_date ,vbi.booked_date
...@@ -96,6 +97,7 @@ ...@@ -96,6 +97,7 @@
LEFT JOIN vehicle_book_record v2 on v2.id = (select id from vehicle_book_record where vehicle_id = v.id order by update_time DESC LIMIT 1) LEFT JOIN vehicle_book_record v2 on v2.id = (select id from vehicle_book_record where vehicle_id = v.id order by update_time DESC LIMIT 1)
LEFT JOIN vehicle_departure_log v3 on v2.id = v3.book_record_id LEFT JOIN vehicle_departure_log v3 on v2.id = v3.book_record_id
LEFT JOIN vehicle_model vm ON v.model_id = vm.id LEFT JOIN vehicle_model vm ON v.model_id = vm.id
LEFT JOIN company_info ci on ci.id = bc2.company_id
LEFT JOIN (select * from constant where type = 2) c ON v.use_type = c.code LEFT JOIN (select * from constant where type = 2) c ON v.use_type = c.code
where where
v.is_del=0 v.is_del=0
...@@ -229,6 +231,7 @@ ...@@ -229,6 +231,7 @@
v.vehicle_inner_status, v.vehicle_inner_status,
v.mileage_last_update as mileage, v.mileage_last_update as mileage,
c.val as useTypeName, c.val as useTypeName,
ci.name as companyName,
vm.name as vehicleType vm.name as vehicleType
<if test=" yearMonthAndParam !=null "> <if test=" yearMonthAndParam !=null ">
,vbi.booked_date ,vbi.booked_date
...@@ -247,6 +250,7 @@ ...@@ -247,6 +250,7 @@
LEFT JOIN vehicle_book_record v2 on v2.id = (select id from vehicle_book_record where vehicle_id = v.id order by update_time DESC LIMIT 1) LEFT JOIN vehicle_book_record v2 on v2.id = (select id from vehicle_book_record where vehicle_id = v.id order by update_time DESC LIMIT 1)
LEFT JOIN vehicle_departure_log v3 on v2.id = v3.book_record_id LEFT JOIN vehicle_departure_log v3 on v2.id = v3.book_record_id
LEFT JOIN vehicle_model vm ON v.model_id = vm.id LEFT JOIN vehicle_model vm ON v.model_id = vm.id
LEFT JOIN company_info ci on ci.id = bc2.company_id
LEFT JOIN (select * from constant where type = 2) c ON v.use_type = c.code LEFT JOIN (select * from constant where type = 2) c ON v.use_type = c.code
where where
v.is_del=0 v.is_del=0
...@@ -361,6 +365,7 @@ ...@@ -361,6 +365,7 @@
v.number_plate, v.number_plate,
bc.name as parkBranchCompanyName, bc.name as parkBranchCompanyName,
c.val as useType, c.val as useType,
ci.name as companyName,
vm.name as vehicleType vm.name as vehicleType
from vehicle v from vehicle v
<if test=" yearMonthAndParam != null "> <if test=" yearMonthAndParam != null ">
...@@ -378,6 +383,7 @@ ...@@ -378,6 +383,7 @@
LEFT JOIN vehicle_book_record v2 on v2.vehicle_id = v.id LEFT JOIN vehicle_book_record v2 on v2.vehicle_id = v.id
LEFT JOIN vehicle_departure_log v3 on v2.id = v3.book_record_id LEFT JOIN vehicle_departure_log v3 on v2.id = v3.book_record_id
LEFT JOIN vehicle_model vm ON v.model_id = vm.id LEFT JOIN vehicle_model vm ON v.model_id = vm.id
LEFT JOIN company_info ci on ci.id = bc2.company_id
LEFT JOIN (select * from constant where type = 2) c ON v.use_type = c.code LEFT JOIN (select * from constant where type = 2) c ON v.use_type = c.code
where where
v.is_del=0 v.is_del=0
......
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