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
071eca35
Commit
071eca35
authored
Aug 17, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Plain Diff
解决冲突
parents
27d14c2d
dc74bac8
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
61 additions
and
29 deletions
+61
-29
AnalyseController.java
...s/boot/module/jxiop/biz/controller/AnalyseController.java
+1
-1
IdxBizFanPointProcessVariableClassificationDto.java
...z/dto/IdxBizFanPointProcessVariableClassificationDto.java
+11
-2
IdxBizFanPointVarCentralValueDto.java
...odule/jxiop/biz/dto/IdxBizFanPointVarCentralValueDto.java
+3
-0
IdxBizFanPointVarCentralValue.java
...odule/jxiop/biz/entity/IdxBizFanPointVarCentralValue.java
+4
-3
IdxBizFanWarningRecord.java
.../boot/module/jxiop/biz/entity/IdxBizFanWarningRecord.java
+5
-0
IdxBizFanPointProcessVariableClassificationMapper.java
...r2/IdxBizFanPointProcessVariableClassificationMapper.java
+2
-1
CommonServiceImpl.java
...boot/module/jxiop/biz/service/impl/CommonServiceImpl.java
+0
-0
HealthStatusIndicatorServiceImpl.java
...op/biz/service/impl/HealthStatusIndicatorServiceImpl.java
+0
-0
application.properties
...iop-analyse-biz/src/main/resources/application.properties
+9
-0
IdxBizFanPointProcessVariableClassificationMapper.xml
...ter/IdxBizFanPointProcessVariableClassificationMapper.xml
+3
-2
MonitorFanIdxController.java
.../module/jxiop/biz/controller/MonitorFanIdxController.java
+1
-1
CommonServiceImpl.java
...boot/module/jxiop/biz/service/impl/CommonServiceImpl.java
+3
-0
overview.json
...jxiop-bigscreen-biz/src/main/resources/json/overview.json
+9
-9
overviewGF.json
...iop-bigscreen-biz/src/main/resources/json/overviewGF.json
+10
-10
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 @
071eca35
...
...
@@ -66,7 +66,7 @@ public class AnalyseController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"获取influxdb数据"
,
notes
=
"获取influxdb数据"
)
@GetMapping
(
value
=
"/getInfluxdbDataByConditon"
)
public
ResponseModel
<
List
<
Map
<
String
,
Object
>
>>
getInfluxdbDataByConditon
(
@RequestParam
String
stationType
,
@RequestParam
String
pointId
,
@RequestParam
String
startTime
,
@RequestParam
String
endTime
)
{
public
ResponseModel
<
Map
<
String
,
Object
>>
getInfluxdbDataByConditon
(
@RequestParam
String
stationType
,
@RequestParam
String
pointId
,
@RequestParam
String
startTime
,
@RequestParam
String
endTime
)
{
return
ResponseHelper
.
buildResponse
(
commonServiceImpl
.
getInfluxdbDataByConditon
(
stationType
,
pointId
,
startTime
,
endTime
))
;
}
}
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/dto/IdxBizFanPointProcessVariableClassificationDto.java
View file @
071eca35
...
...
@@ -9,6 +9,7 @@ import lombok.Data;
import
lombok.EqualsAndHashCode
;
import
java.time.LocalDateTime
;
import
java.util.Date
;
/**
*
...
...
@@ -30,7 +31,7 @@ public class IdxBizFanPointProcessVariableClassificationDto {
private
String
record
;
@TableField
(
"REC_DATE"
)
private
LocalDateTim
e
recDate
;
private
Dat
e
recDate
;
@TableField
(
"REC_USER_ID"
)
private
String
recUserId
;
...
...
@@ -93,7 +94,7 @@ public class IdxBizFanPointProcessVariableClassificationDto {
private
String
pointName
;
@TableField
(
"GATEWAY_ID"
)
private
Lo
ng
gatewayId
;
private
Stri
ng
gatewayId
;
@ApiModelProperty
(
value
=
"点表地址"
)
@TableField
(
"INDEX_ADDRESS"
)
...
...
@@ -103,4 +104,12 @@ public class IdxBizFanPointProcessVariableClassificationDto {
@TableField
(
"KKS"
)
private
String
kks
;
private
Double
currentValue
;
private
String
pointOneId
;
private
String
pointTwoId
;
private
String
pointThreeId
;
private
String
analysVariableId
;
}
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/dto/IdxBizFanPointVarCentralValueDto.java
View file @
071eca35
...
...
@@ -114,4 +114,7 @@ public class IdxBizFanPointVarCentralValueDto {
@TableField
(
"PROCESS_POINT2_ID"
)
private
Double
processPoint2Id
;
@ApiModelProperty
(
value
=
"预警内容"
)
@TableField
(
"CONTENT"
)
private
String
CONTENT
;
}
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/entity/IdxBizFanPointVarCentralValue.java
View file @
071eca35
...
...
@@ -8,6 +8,7 @@ import lombok.EqualsAndHashCode;
import
lombok.experimental.Accessors
;
import
java.time.LocalDateTime
;
import
java.util.Date
;
/**
*
...
...
@@ -39,7 +40,7 @@ public class IdxBizFanPointVarCentralValue{
*
*/
@TableField
(
"REC_DATE"
)
private
LocalDateTim
e
recDate
;
private
Dat
e
recDate
;
/**
*
...
...
@@ -81,7 +82,7 @@ public class IdxBizFanPointVarCentralValue{
*
*/
@TableField
(
"ANALYSIS_POINT_ID"
)
private
Integer
analysisPointId
;
private
String
analysisPointId
;
/**
* 片区
...
...
@@ -171,6 +172,6 @@ public class IdxBizFanPointVarCentralValue{
* 工况变量2ID
*/
@TableField
(
"PROCESS_POINT2_ID"
)
private
Double
processPoint2Id
;
private
String
processPoint2Id
;
}
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/entity/IdxBizFanWarningRecord.java
View file @
071eca35
...
...
@@ -125,4 +125,9 @@ public class IdxBizFanWarningRecord{
@TableField
(
"EQUIPMENT_NAME"
)
private
String
equipmentName
;
/**
* 预警内容
* */
@TableField
(
"CONTENT"
)
private
String
CONTENT
;
}
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/mapper2/IdxBizFanPointProcessVariableClassificationMapper.java
View file @
071eca35
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
biz
.
mapper2
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.yeejoin.amos.boot.module.jxiop.biz.dto.IdxBizFanPointProcessVariableClassificationDto
;
import
com.yeejoin.amos.boot.module.jxiop.biz.entity.IdxBizFanPointProcessVariableClassification
;
import
java.util.List
;
...
...
@@ -12,7 +13,7 @@ import java.util.List;
* @date 2023-08-15
*/
public
interface
IdxBizFanPointProcessVariableClassificationMapper
extends
BaseMapper
<
IdxBizFanPointProcessVariableClassification
>
{
List
<
IdxBizFanPointProcessVariableClassification
>
getInfluxDBData
();
List
<
IdxBizFanPointProcessVariableClassification
Dto
>
getInfluxDBData
();
List
<
String
>
gateWayIdListFan
();
}
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 @
071eca35
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/service/impl/HealthStatusIndicatorServiceImpl.java
View file @
071eca35
This diff is collapsed.
Click to expand it.
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/resources/application.properties
View file @
071eca35
...
...
@@ -80,3 +80,11 @@ spring.elasticsearch.rest.connection-timeout=30000
spring.elasticsearch.rest.username
=
elastic
spring.elasticsearch.rest.password
=
123456
spring.elasticsearch.rest.read-timeout
=
30000
healthValue_Warn
=
39
healthValue_Risk
=
59
healthValue_Notice
=
79
healthValue_DayCount
=
3
healthValue_HourCount
=
6
healthValue_MinCount
=
5
\ No newline at end of file
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/resources/mapper/cluster/IdxBizFanPointProcessVariableClassificationMapper.xml
View file @
071eca35
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.yeejoin.amos.boot.module.jxiop.biz.mapper2.IdxBizFanPointProcessVariableClassificationMapper"
>
<select
id=
"getInfluxDBData"
resultType=
"com.yeejoin.amos.boot.module.jxiop.biz.
entity.IdxBizFanPointProcessVariableClassification
"
>
<select
id=
"getInfluxDBData"
resultType=
"com.yeejoin.amos.boot.module.jxiop.biz.
dto.IdxBizFanPointProcessVariableClassificationDto
"
>
SELECT b.*,
ibfpvcv.PROCESS_POINT1_ID as pointOneId,
ibfpvcv.PROCESS_POINT2_ID as pointTwoId,
...
...
@@ -9,7 +9,7 @@
ibfpvcv.ANALYSIS_POINT_ID as pointId
FROM (
SELECT *
FROM idx_biz_uxfv
uxfv
FROM idx_biz_fan_point_process_variable_classification
uxfv
WHERE uxfv.SEQUENCE_NBR IN (
SELECT PROCESS_POINT1_ID
FROM `idx_biz_fan_point_var_central_value`
...
...
@@ -47,6 +47,7 @@
WHERE b.SEQUENCE_NBR = ibfpvcv.PROCESS_POINT1_ID
OR b.SEQUENCE_NBR = ibfpvcv.PROCESS_POINT2_ID
OR b.SEQUENCE_NBR = ibfpvcv.PROCESS_POINT3_ID
OR b.SEQUENCE_NBR = ibfpvcv.ANALYSIS_POINT_ID
GROUP BY b.SEQUENCE_NBR
</select>
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-bigscreen-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/MonitorFanIdxController.java
View file @
071eca35
...
...
@@ -629,7 +629,7 @@ public class MonitorFanIdxController extends BaseController {
String
num
=
monitorFanIndicator
.
getFJCount
(
gatewayId
);
columnMap
.
put
(
"逆变器台数"
,
num
);
Double
capacityl
=
commonService
.
getStationCapactityByStationWerks
(
stationBasic
.
getStationNumber
());
columnMap
.
put
(
"装机容量"
,
capacityl
);
columnMap
.
put
(
"装机容量"
,
String
.
format
(
"%.2f"
,
capacityl
)
);
String
json
=
null
;
try
{
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-bigscreen-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/CommonServiceImpl.java
View file @
071eca35
...
...
@@ -89,6 +89,9 @@ public class CommonServiceImpl {
String
sql
=
"SELECT * FROM indicators_"
+
gatewayId
+
" where equipmentIndexName='"
+
indicator
+
"'"
;
Double
avageValue
=
0.0
;
List
<
Map
<
String
,
Object
>>
mapList
=
influxdbUtil
.
query
(
sql
);
if
(
mapList
.
size
()
<
1
){
return
avageValue
;
}
avageValue
=
mapList
.
stream
().
filter
(
stringObjectMap
->
!
ObjectUtils
.
isEmpty
(
stringObjectMap
.
get
(
"value"
))).
mapToDouble
(
l
->
Double
.
parseDouble
((
String
)
l
.
get
(
"value"
))).
average
().
getAsDouble
();
return
Double
.
valueOf
(
String
.
format
(
"%.2f"
,
avageValue
));
}
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-bigscreen-biz/src/main/resources/json/overview.json
View file @
071eca35
[
{
"tit
i
e"
:
"装机容量"
,
"tit
l
e"
:
"装机容量"
,
"title1"
:
"装机容量(MW)"
,
"url"
:
"upload/jxiop/amos_studio/2F378EF430F788CA71E876359B46C4E.png"
},
{
"tit
i
e"
:
"日发电量"
,
"tit
l
e"
:
"日发电量"
,
"title1"
:
"日发电量(万kWh)"
,
"url"
:
"upload/jxiop/amos_studio/E07C6C41715033585F69934AF08A3431.png"
},
{
"tit
i
e"
:
"风机台数"
,
"tit
l
e"
:
"风机台数"
,
"title1"
:
"风机台数(台)"
,
"action"
:
"*.replace(
\"
.0
\"
,
\"\"
)"
,
"url"
:
"upload/jxiop/amos_studio/EA3572E1BD31DC1E7D8DA162F09ECB.png"
},
{
"tit
i
e"
:
"月发电量"
,
"tit
l
e"
:
"月发电量"
,
"title1"
:
"月发电量(万kWh)"
,
"url"
:
"upload/jxiop/amos_studio/6CE2792ABEEAE816CB798649A6796.png"
},
{
"tit
i
e"
:
"瞬时风速"
,
"tit
l
e"
:
"瞬时风速"
,
"title1"
:
"平均风速(m/s)"
,
"url"
:
"upload/jxiop/amos_studio/3B66742AAB2FEB0F5CEC10DA50156F.png"
},
{
"tit
i
e"
:
"年发电量"
,
"tit
l
e"
:
"年发电量"
,
"title1"
:
"年发电量(万kWh)"
,
"url"
:
"upload/jxiop/amos_studio/12D321E29727689B334E3E625383EB7C.png"
},
{
"tit
i
e"
:
"有功功率"
,
"tit
l
e"
:
"有功功率"
,
"title1"
:
"有功功率(MW)"
,
"action"
:
"String.format(
\"
%.2f
\"
,Double.parseDouble(*)/1000)"
,
"url"
:
"upload/jxiop/amos_studio/C46B483E51ACAC137CBEB5156F6F377.png"
},
{
"tit
i
e"
:
"日利用小时"
,
"tit
l
e"
:
"日利用小时"
,
"title1"
:
"日利用小时"
,
"action"
:
"String.format(
\"
%.2f
\"
,Double.parseDouble(columnMap.get(
\"
*
\"
).toString())/ (Double.parseDouble(columnMap.get(
\"
-
\"
).toString())*1000))"
,
"url"
:
"upload/jxiop/amos_studio/C46B483E51ACAC137CBEB5156F6F377.png"
},
{
"tit
i
e"
:
"上网电量"
,
"tit
l
e"
:
"上网电量"
,
"title1"
:
"上网电量(万kWh)"
,
"url"
:
"upload/jxiop/amos_studio/1660C5DDA22ACFADC89A60DEDB82FA39.png"
}
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-bigscreen-biz/src/main/resources/json/overviewGF.json
View file @
071eca35
[
{
"tit
i
e"
:
"逆变器台数"
,
"tit
l
e"
:
"逆变器台数"
,
"title1"
:
"逆变器台数(台)"
,
"action"
:
"*.replace(
\"
.0
\"
,
\"\"
)"
,
"url"
:
"upload/jxiop/amos_studio/EA3572E1BD31DC1E7D8DA162F09ECB.png"
},
{
"tit
i
e"
:
"装机容量"
,
"tit
l
e"
:
"装机容量"
,
"title1"
:
"装机容量(MW)"
,
"url"
:
"upload/jxiop/amos_studio/2F378EF430F788CA71E876359B46C4E.png"
},
{
"tit
i
e"
:
"有功功率"
,
"tit
l
e"
:
"有功功率"
,
"title1"
:
"有功功率(MW)"
,
"action"
:
"String.format(
\"
%.2f
\"
,Double.parseDouble(*)/1000)"
,
"url"
:
"upload/jxiop/amos_studio/C46B483E51ACAC137CBEB5156F6F377.png"
...
...
@@ -19,7 +19,7 @@
{
"url"
:
"upload/jxiop/amos_studio/F9A5F9E6EB7C825CA869063E817E281.png"
,
"title1"
:
"综合效率(%)"
,
"title
2
"
:
"综合效率"
"title"
:
"综合效率"
},
{
"url"
:
"upload/jxiop/amos_studio/DD1CE8BAF5A7C3AC5E6E2C0D46C3EEC.png"
,
...
...
@@ -29,30 +29,30 @@
{
"url"
:
"upload/jxiop/amos_studio/22639FDFF29B20B681DF55F1252876B3.png"
,
"title1"
:
"总辐射日累计(Mb/㎡)"
,
"title
2
"
:
"总辐射累计"
"title"
:
"总辐射累计"
},
{
"tit
i
e"
:
"日发电量"
,
"tit
l
e"
:
"日发电量"
,
"title1"
:
"日发电量(万kWh)"
,
"url"
:
"upload/jxiop/amos_studio/E07C6C41715033585F69934AF08A3431.png"
},
{
"tit
i
e"
:
"月发电量"
,
"tit
l
e"
:
"月发电量"
,
"title1"
:
"月发电量(万kWh)"
,
"url"
:
"upload/jxiop/amos_studio/6CE2792ABEEAE816CB798649A6796.png"
},
{
"tit
i
e"
:
"年发电量"
,
"tit
l
e"
:
"年发电量"
,
"title1"
:
"年发电量(万kWh)"
,
"url"
:
"upload/jxiop/amos_studio/12D321E29727689B334E3E625383EB7C.png"
},
{
"tit
i
e"
:
"上网电量"
,
"tit
l
e"
:
"上网电量"
,
"title1"
:
"上网电量(万kWh)"
,
"url"
:
"upload/jxiop/amos_studio/1660C5DDA22ACFADC89A60DEDB82FA39.png"
},
{
"tit
i
e"
:
"年利用小时"
,
"tit
l
e"
:
"年利用小时"
,
"title1"
:
"年利用小时"
,
"action"
:
"String.format(
\"
%.2f
\"
,Double.parseDouble(columnMap.get(
\"
*
\"
).toString())/ (Double.parseDouble(columnMap.get(
\"
-
\"
).toString())*1000))"
,
"url"
:
"upload/jxiop/amos_studio/C46B483E51ACAC137CBEB5156F6F377.png"
...
...
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