Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-trialdrive-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 050e6490
authored
Dec 27, 2021
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改设备激活报表查询
1 parent
f7e996d7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
10 deletions
src/main/java/cn/com/glsx/admin/modules/model/param/DeviceActiveSearch.java
src/main/resources/mapper/VehicleMapper.xml
src/main/java/cn/com/glsx/admin/modules/model/param/DeviceActiveSearch.java
View file @
050e649
...
@@ -48,8 +48,7 @@ public class DeviceActiveSearch extends Page {
...
@@ -48,8 +48,7 @@ public class DeviceActiveSearch extends Page {
public
void
setEndTime
(
String
endTime
)
{
public
void
setEndTime
(
String
endTime
)
{
if
(
StringUtils
.
isNullOrEmpty
(
endTime
))
{
if
(
StringUtils
.
isNullOrEmpty
(
endTime
))
{
this
.
endTime
=
endTime
;
this
.
endTime
=
endTime
;
}
else
{
this
.
endTime
=
endTime
.
concat
(
" 23:59:59"
);
}
}
this
.
endTime
=
endTime
.
concat
(
" 23:59:59"
);
}
}
}
}
src/main/resources/mapper/VehicleMapper.xml
View file @
050e649
...
@@ -535,10 +535,13 @@
...
@@ -535,10 +535,13 @@
</choose>
</choose>
</if>
</if>
<if
test=
"startTime != null and startTime != ''"
>
<if
test=
"startTime != null and startTime != ''"
>
tvd.created_date
>
= #{startTime}
and
tvd.created_date
>
= #{startTime}
</if>
</if>
<if
test=
"endTime != null and endTime != ''"
>
<if
test=
"endTime != null and endTime != ''"
>
tvd.created_date
<
= #{endTime}
and tvd.created_date
<
= #{endTime}
</if>
<if
test=
"orgId != null "
>
and tu.id = #{orgId}
</if>
</if>
<if
test=
"keywords != null and keywords !=''"
>
<if
test=
"keywords != null and keywords !=''"
>
and(
and(
...
@@ -571,22 +574,22 @@
...
@@ -571,22 +574,22 @@
and tvd.bind_status = 1
and tvd.bind_status = 1
and tvd.del_flag = 0
and tvd.del_flag = 0
<if
test=
"activeDateStart != null and activeDateStart != ''"
>
<if
test=
"activeDateStart != null and activeDateStart != ''"
>
tvd.created_date
>
= #{activeDateStart}
and
tvd.created_date
>
= #{activeDateStart}
</if>
</if>
<if
test=
"activeDateEnd != null and activeDateEnd != ''"
>
<if
test=
"activeDateEnd != null and activeDateEnd != ''"
>
tvd.created_date
<
= #{activeDateEnd}
and
tvd.created_date
<
= #{activeDateEnd}
</if>
</if>
<if
test=
"finalGpsTimeStart != null and finalGpsTimeStart != ''"
>
<if
test=
"finalGpsTimeStart != null and finalGpsTimeStart != ''"
>
tvd
.last_gps_time
>
= #{finalGpsTimeStart}
and tdl
.last_gps_time
>
= #{finalGpsTimeStart}
</if>
</if>
<if
test=
"finalGpsTimeEnd != null and finalGpsTimeEnd != ''"
>
<if
test=
"finalGpsTimeEnd != null and finalGpsTimeEnd != ''"
>
tvd
.last_gps_time
<
= #{finalGpsTimeEnd}
and tdl
.last_gps_time
<
= #{finalGpsTimeEnd}
</if>
</if>
<if
test=
"finalBsTimeStart != null and finalBsTimeStart != ''"
>
<if
test=
"finalBsTimeStart != null and finalBsTimeStart != ''"
>
tvd
.last_bs_time
>
= #{finalBsTimeStart}
and tdl
.last_bs_time
>
= #{finalBsTimeStart}
</if>
</if>
<if
test=
"finalBsTimeEnd != null and finalBsTimeEnd != ''"
>
<if
test=
"finalBsTimeEnd != null and finalBsTimeEnd != ''"
>
tvd
.last_bs_time
<
= #{finalBsTimeEnd}
and tdl
.last_bs_time
<
= #{finalBsTimeEnd}
</if>
</if>
<if
test=
"orgId != null "
>
<if
test=
"orgId != null "
>
and tu.id = #{orgId}
and tu.id = #{orgId}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment