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
de57a879
Commit
de57a879
authored
Oct 10, 2023
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改代码
parent
6119753e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
AnalyseController.java
...s/boot/module/jxiop/biz/controller/AnalyseController.java
+7
-2
CommonServiceImpl.java
...boot/module/jxiop/biz/service/impl/CommonServiceImpl.java
+2
-2
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 @
de57a879
...
...
@@ -109,8 +109,13 @@ public class AnalyseController extends BaseController {
@GetMapping
(
value
=
"/getInfluxdbDataByConditon"
)
public
ResponseModel
<
Map
<
String
,
Object
>>
getInfluxdbDataByConditon
(
@RequestParam
String
stationType
,
@RequestParam
String
pointId
,
@RequestParam
(
required
=
false
)
String
startTime
,
@RequestParam
(
required
=
false
)
String
endTime
)
{
if
(
StringUtils
.
isEmpty
(
startTime
)
&&
StringUtils
.
isEmpty
(
endTime
)
){
Date
currentDayStartTime
=
DateUtils
.
getCurrentDayStartTime
(
new
Date
());
Date
currentDayEndTime
=
DateUtils
.
getCurrentDayEndTime
(
new
Date
());
Date
currentDayStartTime
=
null
;
try
{
currentDayStartTime
=
DateUtils
.
minDateOfMonth
(
new
Date
());
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
Date
currentDayEndTime
=
DateUtils
.
getCurrentMonthEndTime
(
new
Date
());
startTime
=
DateUtils
.
convertDateToString
(
currentDayStartTime
,
DateUtils
.
DATE_TIME_PATTERN
);
endTime
=
DateUtils
.
convertDateToString
(
currentDayEndTime
,
DateUtils
.
DATE_TIME_PATTERN
);
}
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/CommonServiceImpl.java
View file @
de57a879
...
...
@@ -945,10 +945,10 @@ public class CommonServiceImpl {
String
sql
=
""
;
List
<
IndicatorData
>
result
=
new
ArrayList
<>();
if
(
"FD"
.
equals
(
stationType
))
{
IdxBizFanPointProcessVariableClassification
idxBizFanPointProcessVariableClassification
=
idxBizFanPointProcessVariableClassificationMapper
.
selectOne
(
new
QueryWrapper
<
IdxBizFanPointProcessVariableClassification
>().
eq
(
"INDEX_ADDRESS"
,
pointId
));
IdxBizFanPointProcessVariableClassification
idxBizFanPointProcessVariableClassification
=
idxBizFanPointProcessVariableClassificationMapper
.
selectOne
(
new
QueryWrapper
<
IdxBizFanPointProcessVariableClassification
>().
eq
(
"INDEX_ADDRESS"
,
pointId
)
.
eq
(
"TAG_CODE"
,
"分析变量"
)
);
result
=
indicatorDataMapper
.
selectDataByAddressAndtime
(
idxBizFanPointProcessVariableClassification
.
getIndexAddress
(),
startTime
,
endTime
,
idxBizFanPointProcessVariableClassification
.
getGatewayId
());
}
else
{
IdxBizPvPointProcessVariableClassification
idxBizPvPointProcessVariableClassification
=
idxBizPvPointProcessVariableClassificationMapper
.
selectOne
(
new
QueryWrapper
<
IdxBizPvPointProcessVariableClassification
>().
eq
(
"INDEX_ADDRESS"
,
pointId
));
IdxBizPvPointProcessVariableClassification
idxBizPvPointProcessVariableClassification
=
idxBizPvPointProcessVariableClassificationMapper
.
selectOne
(
new
QueryWrapper
<
IdxBizPvPointProcessVariableClassification
>().
eq
(
"INDEX_ADDRESS"
,
pointId
)
.
eq
(
"TAG_CODE"
,
"分析变量"
)
);
result
=
indicatorDataMapper
.
selectDataByAddressAndtime
(
idxBizPvPointProcessVariableClassification
.
getIndexAddress
(),
startTime
,
endTime
,
idxBizPvPointProcessVariableClassification
.
getGatewayId
());
}
List
<
String
>
seriesData_valuse
=
new
ArrayList
<>();
...
...
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