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
e472cb19
Commit
e472cb19
authored
Oct 23, 2020
by
周健威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改查询bug
parent
77cc7730
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
VehicleMapper.java
.../java/com/xxfc/platform/vehicle/mapper/VehicleMapper.java
+1
-1
RentVehicleController.java
...com/xxfc/platform/vehicle/rest/RentVehicleController.java
+1
-1
VehicleMapper.xml
...ehicle-server/src/main/resources/mapper/VehicleMapper.xml
+6
-0
No files found.
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/mapper/VehicleMapper.java
View file @
e472cb19
...
...
@@ -60,5 +60,5 @@ public interface VehicleMapper extends Mapper<Vehicle> {
List
<
Vehicle
>
getAllVehicleByParam
(
Map
<
String
,
Object
>
param
);
List
<
VehicleBookRecord
>
incloudBookRecord
(
@Param
(
"startDateExtend"
)
String
startDateExtend
,
@Param
(
"endDateExtend"
)
String
endDateExtend
);
List
<
VehicleBookRecord
>
incloudBookRecord
(
@Param
(
"startDateExtend"
)
String
startDateExtend
,
@Param
(
"endDateExtend"
)
String
endDateExtend
,
@Param
(
"vehicleId"
)
String
vehicleId
);
}
\ No newline at end of file
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/rest/RentVehicleController.java
View file @
e472cb19
...
...
@@ -188,7 +188,7 @@ public class RentVehicleController extends BaseController<VehicleBiz> implements
for
(
UsableVeicleVO
usableVeicleVO
:
pageDataVO
.
getData
())
{
//判断是否有被全包含
List
<
VehicleBookRecord
>
list
=
vehicleMapper
.
incloudBookRecord
(
rbd
.
getStartDateExtend
(),
rbd
.
getEndDateExtend
());
List
<
VehicleBookRecord
>
list
=
vehicleMapper
.
incloudBookRecord
(
rbd
.
getStartDateExtend
(),
rbd
.
getEndDateExtend
()
,
usableVeicleVO
.
getId
()
);
if
(
list
.
size
()
>
0
)
{
Date
startDate
=
DateUtil
.
offsetMinute
(
DateUtil
.
date
(
dto
.
getStartDateTamp
()),
5
);
...
...
xx-vehicle/xx-vehicle-server/src/main/resources/mapper/VehicleMapper.xml
View file @
e472cb19
...
...
@@ -1146,6 +1146,9 @@
<if
test=
"memberUse != null and memberUse>0"
>
and (v.member_use = 1 or v.member_use = #{memberUse})
</if>
<if
test=
"vehicleId != null"
>
and v.id = #{vehicleId}
</if>
<if
test=
"lon != null and lat != null"
>
order by
distance asc
...
...
@@ -1302,6 +1305,9 @@
select *
from vehicle_book_record
where status != 4 and status != 6
<if
test=
"vehicleId != null"
>
and vehicle_id = #{vehicleId}
</if>
and (
((actual_end_date is not null and actual_end_date
>
= #{endDateExtend}) or (actual_end_date is null and book_end_date
>
= #{endDateExtend}))
and
...
...
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