Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
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
项目统一框架
amos-boot-biz
Commits
8873bfb5
Commit
8873bfb5
authored
Oct 26, 2023
by
chenzhao
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' of
http://39.98.45.134:8090/moa/amos-boot-biz
into developer
parents
00caab43
d53248bd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
AnalyseController.java
...s/boot/module/jxiop/biz/controller/AnalyseController.java
+6
-4
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/AnalyseController.java
View file @
8873bfb5
...
@@ -146,10 +146,11 @@ public class AnalyseController extends BaseController {
...
@@ -146,10 +146,11 @@ public class AnalyseController extends BaseController {
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
startTime
=
DateUtils
.
convertDateToString
(
sevenAgoDayStartTime
,
DateUtils
.
DATE_TIME_PATTERN
);
startTime
=
DateUtils
.
convertDateToString
(
DateUtils
.
dateAddHours
(
sevenAgoDayStartTime
,
-
8
)
,
DateUtils
.
DATE_TIME_PATTERN
);
}
}
DateUtils
.
dateAddHours
(
DateUtils
.
getCurrentDayStartTime
(
new
Date
()),
-
8
);
if
(
StringUtils
.
isEmpty
(
endTime
))
{
if
(
StringUtils
.
isEmpty
(
endTime
))
{
endTime
=
DateUtils
.
convertDateToString
(
new
Date
(
),
DateUtils
.
DATE_TIME_PATTERN
);
endTime
=
DateUtils
.
convertDateToString
(
DateUtils
.
dateAddHours
(
new
Date
(),
-
8
),
DateUtils
.
DATE_TIME_PATTERN
);
}
}
return
ResponseHelper
.
buildResponse
(
commonServiceImpl
.
getInfluxdbDataByConditon
(
stationType
,
pointId
,
startTime
,
endTime
))
;
return
ResponseHelper
.
buildResponse
(
commonServiceImpl
.
getInfluxdbDataByConditon
(
stationType
,
pointId
,
startTime
,
endTime
))
;
}
}
...
@@ -188,10 +189,11 @@ public class AnalyseController extends BaseController {
...
@@ -188,10 +189,11 @@ public class AnalyseController extends BaseController {
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
startTime
=
DateUtils
.
convertDateToString
(
sevenAgoDayStartTime
,
DateUtils
.
DATE_TIME_PATTERN
);
startTime
=
DateUtils
.
convertDateToString
(
DateUtils
.
dateAddHours
(
sevenAgoDayStartTime
,
-
8
)
,
DateUtils
.
DATE_TIME_PATTERN
);
}
}
DateUtils
.
dateAddHours
(
DateUtils
.
getCurrentDayStartTime
(
new
Date
()),
-
8
);
if
(
StringUtils
.
isEmpty
(
endTime
))
{
if
(
StringUtils
.
isEmpty
(
endTime
))
{
endTime
=
DateUtils
.
convertDateToString
(
new
Date
(
),
DateUtils
.
DATE_TIME_PATTERN
);
endTime
=
DateUtils
.
convertDateToString
(
DateUtils
.
dateAddHours
(
new
Date
(),
-
8
),
DateUtils
.
DATE_TIME_PATTERN
);
}
}
return
ResponseHelper
.
buildResponse
(
commonServiceImpl
.
getInfluxdbDataByConditon
(
stationType
,
pointId
,
startTime
,
endTime
))
;
return
ResponseHelper
.
buildResponse
(
commonServiceImpl
.
getInfluxdbDataByConditon
(
stationType
,
pointId
,
startTime
,
endTime
))
;
}
}
...
...
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