Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
refined-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
refined-platform
Commits
ba3ad7c8
Commit
ba3ad7c8
authored
Jul 20, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改消费海康回调函数
parent
dd52a534
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
refined-manager/src/main/java/com/mortals/xhx/busiz/web/TestController.java
...c/main/java/com/mortals/xhx/busiz/web/TestController.java
+4
-2
No files found.
refined-manager/src/main/java/com/mortals/xhx/busiz/web/TestController.java
View file @
ba3ad7c8
...
@@ -6,6 +6,7 @@ import cn.hutool.core.date.DateUtil;
...
@@ -6,6 +6,7 @@ import cn.hutool.core.date.DateUtil;
import
cn.hutool.core.util.HexUtil
;
import
cn.hutool.core.util.HexUtil
;
import
cn.hutool.core.util.RandomUtil
;
import
cn.hutool.core.util.RandomUtil
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.mortals.framework.annotation.UnAuth
;
import
com.mortals.framework.common.Rest
;
import
com.mortals.framework.common.Rest
;
import
com.mortals.framework.util.SecurityUtil
;
import
com.mortals.framework.util.SecurityUtil
;
import
com.mortals.xhx.module.hik.face.service.FacePlanService
;
import
com.mortals.xhx.module.hik.face.service.FacePlanService
;
...
@@ -90,12 +91,13 @@ public class TestController {
...
@@ -90,12 +91,13 @@ public class TestController {
}
}
@PostMapping
(
"mockStatData"
)
@GetMapping
(
"mockStatData"
)
@UnAuth
public
String
mockStatData
()
{
public
String
mockStatData
()
{
ArrayList
<
RealtimeDataflowStatEntity
>
statEntities
=
new
ArrayList
<>();
ArrayList
<
RealtimeDataflowStatEntity
>
statEntities
=
new
ArrayList
<>();
//模拟构造过去人流数据
//模拟构造过去人流数据
DateTime
startDateTime
=
DateUtil
.
parseDate
(
"2023-03-01"
);
DateTime
startDateTime
=
DateUtil
.
parseDate
(
"2023-03-01"
);
DateTime
endDateTime
=
DateUtil
.
parseDate
(
"2023-05-10"
);
DateTime
endDateTime
=
DateUtil
.
date
(
);
Integer
subDay
=
Integer
.
parseInt
(
String
.
valueOf
(
DateUtil
.
betweenDay
(
startDateTime
,
endDateTime
,
false
)));
Integer
subDay
=
Integer
.
parseInt
(
String
.
valueOf
(
DateUtil
.
betweenDay
(
startDateTime
,
endDateTime
,
false
)));
...
...
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