Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
youjj
cloud-platform
Commits
fd753c38
Commit
fd753c38
authored
Sep 21, 2019
by
jiaorz
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
084a4bc6
5a9af981
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
19 deletions
+30
-19
VehicleUserReserveVo.java
...m/xxfc/platform/vehicle/pojo/vo/VehicleUserReserveVo.java
+7
-0
VehicleUserReserveMapper.xml
...er/src/main/resources/mapper/VehicleUserReserveMapper.xml
+23
-19
No files found.
xx-vehicle/xx-vehicle-api/src/main/java/com/xxfc/platform/vehicle/pojo/vo/VehicleUserReserveVo.java
View file @
fd753c38
...
@@ -20,8 +20,15 @@ public class VehicleUserReserveVo extends VehicleUserReserve {
...
@@ -20,8 +20,15 @@ public class VehicleUserReserveVo extends VehicleUserReserve {
* 取车分公司
* 取车分公司
*/
*/
private
String
companyName
;
private
String
companyName
;
private
String
companyAddress
;
/**
/**
* 还车分公司
* 还车分公司
*/
*/
private
String
arrivalCompanyName
;
private
String
arrivalCompanyName
;
private
String
arrivalcompanyAddress
;
/**
* 车辆图片
*/
private
String
vehiclePic
;
}
}
xx-vehicle/xx-vehicle-server/src/main/resources/mapper/VehicleUserReserveMapper.xml
View file @
fd753c38
...
@@ -6,28 +6,32 @@
...
@@ -6,28 +6,32 @@
<select
id=
"getList"
parameterType=
"com.xxfc.platform.vehicle.pojo.dto.VehicleUserReserveDTO"
resultType=
"com.xxfc.platform.vehicle.pojo.vo.VehicleUserReserveVo"
>
<select
id=
"getList"
parameterType=
"com.xxfc.platform.vehicle.pojo.dto.VehicleUserReserveDTO"
resultType=
"com.xxfc.platform.vehicle.pojo.vo.VehicleUserReserveVo"
>
SELECT
SELECT
r.id,
r.id,
r.user_id
as
userId,
r.user_id
AS
userId,
r.mode_id
as
modeId,
r.mode_id
AS
modeId,
r.`name`,
r.`name`,
r.phone,
r.phone,
r.start_time as startTime,
r.start_time AS startTime,
r.end_time as endTime,
r.end_time AS endTime,
r.addr_province as addrProvince,
r.addr_province AS addrProvince,
r.province_name as provinceName,
r.province_name AS provinceName,
r.addr_city as addrCity,
r.addr_city AS addrCity,
r.city_name as cityName,
r.city_name AS cityName,
r.company_id as companyId,
r.company_id AS companyId,
r.arrival_companyId as arrivalCompanyId,
CONCAT(bct.province_name,bct.city_name,bct.town_name,bct.addr_detail) AS `companyName`,
bct.name as `companyName`,
r.arrival_companyId AS arrivalCompanyId,
bcr.name as `arrivalCompanyName`,
CONCAT(bcr.province_name,bcr.city_name,bcr.town_name,bcr.addr_detail) AS `arrivalcompanyAddress`,
r.crt_time as crtTime,
bct.NAME AS `companyName`,
r.upd_time as updTime,
bcr.NAME AS `arrivalCompanyName`,
r.crt_time AS crtTime,
r.upd_time AS updTime,
r.`status`,
r.`status`,
m.`name` as modelName
m.`name` AS modelName,
FROM vehicle_user_reserve r
m.`cover_pic` AS `vehiclePic`
LEFT JOIN vehicle_model m ON r.mode_id=m.id
FROM
LEFT JOIN `branch_company` AS `bct` ON bct.id=r.company_Id
vehicle_user_reserve r
LEFT JOIN `branch_company` as `bcr` ON bcr.id=r.arrival_companyId
LEFT JOIN vehicle_model m ON r.mode_id = m.id
LEFT JOIN `branch_company` AS `bct` ON bct.id = r.company_Id
LEFT JOIN `branch_company` AS `bcr` ON bcr.id = r.arrival_companyId
<where>
<where>
r.is_del=0
r.is_del=0
</where>
</where>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment