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 715044ce
authored
Dec 30, 2021
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复离线报警和导出和查询数据不一致问题
1 parent
854b1997
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
src/main/java/cn/com/glsx/admin/modules/service/OfflineService.java
src/main/java/cn/com/glsx/admin/modules/service/OfflineService.java
View file @
715044c
...
@@ -86,6 +86,10 @@ public class OfflineService {
...
@@ -86,6 +86,10 @@ public class OfflineService {
}
}
public
List
<
OfflineExport
>
exportOfflineList
(
OfflineSearch
offlineSearch
)
{
public
List
<
OfflineExport
>
exportOfflineList
(
OfflineSearch
offlineSearch
)
{
// 如果没有设置查询开始时间,则默认查询开始时间为从查询开始时间往前推移3天
if
(
StringUtils
.
isNullOrEmpty
(
offlineSearch
.
getOfflineStartTime
()))
{
offlineSearch
.
setOfflineStartTime
(
DateUtil
.
formatDate
(
DateUtils
.
addHours
(
new
Date
(),
-
72
)));
}
String
deviceTypeAndSource
=
offlineSearch
.
getDeviceTypeAndSource
();
String
deviceTypeAndSource
=
offlineSearch
.
getDeviceTypeAndSource
();
if
(
StringUtils
.
isNotEmpty
(
deviceTypeAndSource
))
{
if
(
StringUtils
.
isNotEmpty
(
deviceTypeAndSource
))
{
offlineSearch
.
setDeviceType
(
Integer
.
parseInt
(
deviceTypeAndSource
.
split
(
"-"
)[
0
]));
offlineSearch
.
setDeviceType
(
Integer
.
parseInt
(
deviceTypeAndSource
.
split
(
"-"
)[
0
]));
...
...
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