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
3748b1fb
Commit
3748b1fb
authored
Oct 17, 2019
by
jiaorz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
出行列表添加出车时间和还车时间筛选
parent
6ed7394f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
16 deletions
+11
-16
VehicleDepartureLogMapper.xml
...r/src/main/resources/mapper/VehicleDepartureLogMapper.xml
+11
-16
No files found.
xx-vehicle/xx-vehicle-server/src/main/resources/mapper/VehicleDepartureLogMapper.xml
View file @
3748b1fb
...
@@ -102,15 +102,10 @@
...
@@ -102,15 +102,10 @@
</if>
</if>
<if
test=
"startTime != null and startTime != ''"
>
<if
test=
"startTime != null and startTime != ''"
>
and
and
vehicle_departure_log.departure_time
<
= str_to_date(#{startTime}, '%Y-%m-%d %H')
vehicle_departure_log.departure_time
>
= str_to_date(#{startTime}, '%Y-%m-%d %H')
or TO_DAYS(vehicle_departure_log.departure_time)=TO_DAYS(str_to_date(#{startTime}, '%Y-%m-%d %H'))
or vehicle_departure_log.departure_time is null
</if>
</if>
<if
test=
"endTime != null and endTime != ''"
>
<if
test=
"endTime != null and endTime != ''"
>
and vehicle_departure_log.arrival_time >= str_to_date(#{endTime}, '%Y-%m-%d %H')
and vehicle_departure_log.arrival_time
>
= str_to_date(#{endTime}, '%Y-%m-%d %H')
or TO_DAYS(vehicle_departure_log.arrival_time)=TO_DAYS(str_to_date(#{endTime}, '%Y-%m-%d %H'))
or vehicle_departure_log.arrival_time is null
</if>
</if>
<if
test=
"code!=null"
>
<if
test=
"code!=null"
>
and vehicle.code=#{code}
and vehicle.code=#{code}
...
@@ -157,17 +152,17 @@
...
@@ -157,17 +152,17 @@
)
)
)
)
</if>
</if>
<if
test=
"time != null and time != ''"
>
<if
test=
"startTime != null and startTime != ''"
>
and (vehicle_departure_log.arrival_time >= str_to_date(#{time}, '%Y-%m-%d %H')
or TO_DAYS(vehicle_departure_log.arrival_time)=TO_DAYS(str_to_date(#{time}, '%Y-%m-%d %H'))
or vehicle_departure_log.arrival_time is null
)
and
and
(
vehicle_departure_log.departure_time
<
= str_to_date(#{startTime}, '%Y-%m-%d %H')
vehicle_departure_log.departure_time
<
= str_to_date(#{time}, '%Y-%m-%d %H')
or TO_DAYS(vehicle_departure_log.departure_time)=TO_DAYS(str_to_date(#{startTime}, '%Y-%m-%d %H'))
or TO_DAYS(vehicle_departure_log.departure_time)=TO_DAYS(str_to_date(#{time}, '%Y-%m-%d %H'))
or vehicle_departure_log.departure_time is null
or vehicle_departure_log.departure_time is null
)
</if>
<if
test=
"endTime != null and endTime != ''"
>
and vehicle_departure_log.arrival_time >= str_to_date(#{endTime}, '%Y-%m-%d %H')
or TO_DAYS(vehicle_departure_log.arrival_time)=TO_DAYS(str_to_date(#{endTime}, '%Y-%m-%d %H'))
or vehicle_departure_log.arrival_time is null
</if>
</if>
<if
test=
"code!=null"
>
<if
test=
"code!=null"
>
and vehicle.code=#{code}
and vehicle.code=#{code}
...
...
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