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
b151d706
Commit
b151d706
authored
Aug 27, 2020
by
hezhen
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-tiande' of
http://113.105.137.151:22280/youjj/cloud-platform
into dev-tiande
parents
0bac1cf4
56db3ee2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
3 deletions
+18
-3
VehicleCommonPriceVo.java
...m/xxfc/platform/vehicle/pojo/vo/VehicleCommonPriceVo.java
+4
-0
VehicleCommonPriceInfoMapper.xml
...rc/main/resources/mapper/VehicleCommonPriceInfoMapper.xml
+14
-3
No files found.
xx-vehicle/xx-vehicle-api/src/main/java/com/xxfc/platform/vehicle/pojo/vo/VehicleCommonPriceVo.java
View file @
b151d706
...
@@ -16,4 +16,8 @@ public class VehicleCommonPriceVo extends VehicleCommonPriceInfo {
...
@@ -16,4 +16,8 @@ public class VehicleCommonPriceVo extends VehicleCommonPriceInfo {
private
Integer
mileage
=
0
;
private
Integer
mileage
=
0
;
//车辆状况
//车辆状况
private
Integer
vehicleStatus
;
private
Integer
vehicleStatus
;
private
String
modelName
;
private
Integer
vehicleBodyStatus
;
}
}
xx-vehicle/xx-vehicle-server/src/main/resources/mapper/VehicleCommonPriceInfoMapper.xml
View file @
b151d706
...
@@ -11,17 +11,28 @@
...
@@ -11,17 +11,28 @@
YEAR (NOW()) - YEAR (v.vehicle_register_date)
YEAR (NOW()) - YEAR (v.vehicle_register_date)
) as vehicleAge,
) as vehicleAge,
v.vehicle_status,
v.vehicle_status,
v.vehicle_body_status,
vm.name as modelName,
v.mileage_last_update AS mileage
v.mileage_last_update AS mileage
FROM
FROM
vehicle_common_price_info vci
vehicle_common_price_info vci
LEFT JOIN vehicle v ON v.id = vci.vehicle_id
LEFT JOIN vehicle v ON v.id = vci.vehicle_id
LEFT JOIN branch_company bc2 ON v.subordinate_branch = bc2.id
LEFT JOIN company_info ci on ci.id = bc2.company_id
LEFT JOIN vehicle_model vm ON v.model_id = vm.id
<where>
<where>
<if
test=
"companyId != null and companyId > 0"
>
and vci.company_id = #{companyId}
</if>
<if
test=
"modelId != null and modelId > 0"
>
<if
test=
"modelId != null and modelId > 0"
>
and vci.model_id = #{modelId}
and vci.model_id = #{modelId}
</if>
</if>
<if
test=
"subordinateBranch !=null "
>
and ( v.park_branch_company_id = #{subordinateBranch})
</if>
<if
test=
"parkBranchCompanyId !=null "
>
and ( bc.id = #{parkBranchCompanyId})
</if>
<if
test=
"companyId !=null "
>
and ( ci.id = #{companyId})
</if>
and v.is_del = 0 and v.status
<
3
and v.is_del = 0 and v.status
<
3
</where>
</where>
order by vci.upd_time DESC
order by vci.upd_time DESC
...
...
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