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
d920761f
Commit
d920761f
authored
Nov 02, 2023
by
caotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.告警数据回溯接口调整优化。
parent
db66972c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
41 additions
and
5 deletions
+41
-5
CommonConstans.java
.../amos/boot/module/jxiop/biz/constants/CommonConstans.java
+13
-1
AnalyseController.java
...s/boot/module/jxiop/biz/controller/AnalyseController.java
+4
-4
IdxBizFanPointVarCorrelation.java
...module/jxiop/biz/entity/IdxBizFanPointVarCorrelation.java
+10
-0
IdxBizPvPointVarCorrelation.java
.../module/jxiop/biz/entity/IdxBizPvPointVarCorrelation.java
+12
-0
AlarmInfoDetailServiceImpl.java
...le/jxiop/biz/service/impl/AlarmInfoDetailServiceImpl.java
+0
-0
IndicatorDataMapper.java
...s/boot/module/jxiop/biz/tdmapper/IndicatorDataMapper.java
+2
-0
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/constants/CommonConstans.java
View file @
d920761f
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
biz
.
constants
;
import
cn.hutool.core.date.DatePattern
;
import
cn.hutool.core.date.DateUtil
;
import
java.util.HashMap
;
public
class
CommonConstans
{
...
...
@@ -100,7 +103,7 @@ public class CommonConstans {
public
static
final
String
Fourdecimalplaces
=
"%.4f"
;
public
static
final
String
QueryStringFrontMoudleNotKeyWord
=
"frontModule"
;
public
static
final
HashMap
<
String
,
String
>
waringPeriodS
=
new
HashMap
<
String
,
String
>()
{
public
static
final
HashMap
<
String
,
String
>
waringPeriodS
tatus
=
new
HashMap
<
String
,
String
>()
{
{
put
(
"按时刻"
,
"按10分钟周期"
);
...
...
@@ -108,4 +111,13 @@ public class CommonConstans {
put
(
"按天"
,
"按1天周期"
);
}
};
public
static
final
HashMap
<
String
,
String
>
waringPeriodDateFormate
=
new
HashMap
<
String
,
String
>()
{
{
put
(
"按时刻"
,
DatePattern
.
NORM_DATETIME_PATTERN
);
put
(
"按小时"
,
DatePattern
.
NORM_DATETIME_PATTERN
);
put
(
"按天"
,
DatePattern
.
NORM_DATE_PATTERN
);
}
};
}
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 @
d920761f
...
...
@@ -235,14 +235,14 @@ public class AnalyseController extends BaseController {
return
ResponseHelper
.
buildResponse
(
commonServiceImpl
.
getInfluxdbDataByConditon
(
stationType
,
pointId
,
startTime
,
endTime
))
;
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@ApiOperation
(
httpMethod
=
"
post
"
,
value
=
"预警详情信息-风机"
,
notes
=
"预警详情信息-风机"
)
@
Pos
tMapping
(
value
=
"/getAlramInfoDetailOfFan"
)
@ApiOperation
(
httpMethod
=
"
GET
"
,
value
=
"预警详情信息-风机"
,
notes
=
"预警详情信息-风机"
)
@
Ge
tMapping
(
value
=
"/getAlramInfoDetailOfFan"
)
public
ResponseModel
<
Map
<
String
,
Object
>>
getAlramInfoDetailOfFan
(
@RequestParam
(
required
=
true
)
String
id
){
return
ResponseHelper
.
buildResponse
(
iAlarmInfoDetailService
.
getAlramInfoDetailOfFan
(
id
));
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@ApiOperation
(
httpMethod
=
"
post
"
,
value
=
"预警详情信息-光伏"
,
notes
=
"预警详情信息-光伏"
)
@
Pos
tMapping
(
value
=
"/getAlramInfoDetailOfPv"
)
@ApiOperation
(
httpMethod
=
"
GET
"
,
value
=
"预警详情信息-光伏"
,
notes
=
"预警详情信息-光伏"
)
@
Ge
tMapping
(
value
=
"/getAlramInfoDetailOfPv"
)
public
ResponseModel
<
Map
<
String
,
Object
>>
getAlramInfoDetailOfPv
(
@RequestParam
(
required
=
true
)
String
id
){
return
ResponseHelper
.
buildResponse
(
iAlarmInfoDetailService
.
getAlramInfoDetailOfPv
(
id
));
}
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/entity/IdxBizFanPointVarCorrelation.java
View file @
d920761f
...
...
@@ -138,5 +138,15 @@ public class IdxBizFanPointVarCorrelation{
*/
@TableField
(
"EQUIPMENT_NAME"
)
private
String
equipmentName
;
/**
* 分析变量名称
*/
@TableField
(
"ANALYSIS_POINT_NAME"
)
private
String
analysisPointName
;
/**
* 工况变量名称
*/
@TableField
(
"PROCESS_POINT_NAME"
)
private
String
processPointName
;
}
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/entity/IdxBizPvPointVarCorrelation.java
View file @
d920761f
...
...
@@ -139,4 +139,16 @@ public class IdxBizPvPointVarCorrelation{
@TableField
(
"EQUIPMENT_NAME"
)
private
String
equipmentName
;
/**
* 分析变量名称
*/
@TableField
(
"ANALYSIS_POINT_NAME"
)
private
String
analysisPointName
;
/**
* 工况变量名称
*/
@TableField
(
"PROCESS_POINT_NAME"
)
private
String
processPointName
;
}
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/AlarmInfoDetailServiceImpl.java
View file @
d920761f
This diff is collapsed.
Click to expand it.
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/tdmapper/IndicatorDataMapper.java
View file @
d920761f
...
...
@@ -49,5 +49,7 @@ public interface IndicatorDataMapper extends BaseMapper<IndicatorData> {
@Select
(
"select `value`,`value_f`, address, gateway_id from iot_data.indicator_data where ts > NOW()-10m and gateway_id = #{gatewayId}"
)
List
<
IndicatorData
>
selectDataByGatewayIdAndAddress
(
@Param
(
"gatewayId"
)
String
gatewayId
);
@Select
(
"select created_time,`value`,`value_f`, address, gateway_id from iot_data.indicator_data where gateway_id = #{gatewayId} and `address` in ( ${addresses} ) and ts >= #{startTime} and ts <= #{endTime}"
)
List
<
IndicatorData
>
selectDataByGatewayIdAndAddressForAlarmInfoDetail
(
@Param
(
"gatewayId"
)
String
gatewayId
,
@Param
(
"addresses"
)
String
addresses
,
@Param
(
"startTime"
)
String
startTime
,
@Param
(
"endTime"
)
String
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