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 896c3cf9
authored
Mar 21, 2024
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1.50.0 开发1.50.0需求版本 优化警情数据返回结果
1 parent
87e46c4d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
src/main/java/cn/com/glsx/admin/modules/service/RiskAssessmentService.java
src/test/java/cn/com/glsx/test/MainTest.java
src/main/java/cn/com/glsx/admin/modules/service/RiskAssessmentService.java
View file @
896c3cf
...
...
@@ -120,8 +120,8 @@ public class RiskAssessmentService {
request
.
setSn
(
sn
);
// 查询时间段 全天
request
.
setPeriodType
(
0
);
request
.
setBeginTime
(
DateUtil
.
getOffsetDayDate
(
DateUtil
.
parseDateYmd
(
gpsLocation
.
getDateTime
()),
-
30
));
request
.
setEndTime
(
DateUtil
.
getOffsetDayDate
(
DateUtil
.
parseDateYmd
(
gpsLocation
.
getDateTime
()),
1
));
request
.
setBeginTime
(
DateUtil
.
getOffsetDayDate
(
DateUtil
.
parseDateYmd
(
gpsLocation
.
getDateTime
()),
30
));
request
.
setEndTime
(
DateUtil
.
getOffsetDayDate
(
DateUtil
.
parseDateYmd
(
gpsLocation
.
getDateTime
()),
-
1
));
List
<
StayPointRecordDTO
>
stayPointRecordList
=
remoteFeignStayPointService
.
getStayPointRecord
(
request
);
if
(
CollectionUtils
.
isEmpty
(
stayPointRecordList
))
{
log
.
warn
(
sn
+
"暂设备暂无历史停留点"
);
...
...
src/test/java/cn/com/glsx/test/MainTest.java
View file @
896c3cf
package
cn
.
com
.
glsx
.
test
;
import
cn.com.glsx.admin.modules.utils.DateUtil
;
import
lombok.extern.slf4j.Slf4j
;
import
java.util.Arrays
;
import
java.util.Collection
;
import
java.util.List
;
import
java.util.Optional
;
import
java.util.*
;
import
java.util.function.Consumer
;
import
java.util.stream.Collectors
;
...
...
@@ -36,5 +34,8 @@ public class MainTest {
Optional
.
of
(
listofInts
).
ifPresent
(
System
.
out
::
println
);
// System.out.println("The Structure after flattening is : " + listofInts);
Date
offsetDayDate
=
DateUtil
.
getOffsetDayDate
(
new
Date
(),
30
);
System
.
out
.
println
(
"offsetDayDate = "
+
DateUtil
.
formatDate
(
offsetDayDate
));
}
}
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