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
854c2ded
Commit
854c2ded
authored
Jul 17, 2023
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改代码
parent
e74cf60d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
46 additions
and
5 deletions
+46
-5
KGName.java
...a/com/yeejoin/amos/boot/module/jxiop/api/Enum/KGName.java
+35
-0
MonitorFanIdxController.java
.../module/jxiop/biz/controller/MonitorFanIdxController.java
+2
-2
IndicatorsDto.java
...yeejoin/amos/boot/module/jxiop/biz/dto/IndicatorsDto.java
+1
-0
MonitorFanIndicatorImpl.java
...odule/jxiop/biz/service/impl/MonitorFanIndicatorImpl.java
+7
-2
application-dev.properties
...monitor-biz/src/main/resources/application-dev.properties
+1
-1
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/Enum/KGName.java
0 → 100644
View file @
854c2ded
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
api
.
Enum
;
import
lombok.AllArgsConstructor
;
import
lombok.Getter
;
@Getter
@AllArgsConstructor
public
enum
KGName
{
DLQ
(
"断路器"
,
"dlq"
),
DAZ
(
"刀闸"
,
"daz"
),
DCK
(
"低测控"
,
"dck"
),
GCK
(
"高测控"
,
"gck"
),
CK
(
"测控"
,
"ck"
),
MXDZ
(
"母线PT刀闸"
,
"mxdc"
),
BTCK
(
"本体测控"
,
"btck"
);
private
String
name
;
private
String
code
;
public
static
String
getCode
(
String
name
)
{
for
(
KGName
electricQuantity
:
KGName
.
values
())
{
if
(
electricQuantity
.
getName
().
equals
(
name
))
{
return
electricQuantity
.
getCode
();
}
}
return
null
;
}
}
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/MonitorFanIdxController.java
View file @
854c2ded
...
...
@@ -452,11 +452,11 @@ public class MonitorFanIdxController extends BaseController {
String
gatewayId
=
stationBasic
.
getBoosterGatewayId
();
Map
<
String
,
String
>
map
=
monitorFanIndicatorMapper
.
getMajorBoosterStationInfoBySort
(
station
Id
,
equipName
);
Map
<
String
,
String
>
map
=
monitorFanIndicatorMapper
.
getMajorBoosterStationInfoBySort
(
gateway
Id
,
equipName
);
String
name
=
map
.
get
(
"text"
).
contains
(
"主变"
)?
map
.
get
(
"text"
).
substring
(
0
,
3
):
map
.
get
(
"text"
);
Map
<
String
,
Object
>
switchUrl
=
monitorFanIndicatorImpl
.
getSwitchUrl
(
station
Id
,
name
);
Map
<
String
,
Object
>
switchUrl
=
monitorFanIndicatorImpl
.
getSwitchUrl
(
gateway
Id
,
name
);
List
<
Map
<
String
,
Object
>>
statusMonitoring
=
monitorFanIndicator
.
getStatusGzp
(
gatewayId
,
"光字牌"
,
name
);
IPage
<
Map
<
String
,
Object
>>
result
=
new
Page
<>();
switchUrl
.
put
(
"records"
,
statusMonitoring
);
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/dto/IndicatorsDto.java
View file @
854c2ded
...
...
@@ -28,6 +28,7 @@ public class IndicatorsDto {
private
String
displayName
;
private
String
pictureName
;
private
String
title
;
private
String
state
;
public
String
getTime
()
{
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/MonitorFanIndicatorImpl.java
View file @
854c2ded
...
...
@@ -10,6 +10,7 @@ import com.yeejoin.amos.boot.biz.common.utils.DateUtils;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
com.yeejoin.amos.boot.biz.common.utils.DateUtils
;
import
com.yeejoin.amos.boot.module.jxiop.api.Enum.ElectricQuantity
;
import
com.yeejoin.amos.boot.module.jxiop.api.Enum.KGName
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.IndexDto
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.TreeDto
;
import
com.yeejoin.amos.boot.module.jxiop.api.entity.MonitorFanIndicator
;
...
...
@@ -1077,8 +1078,8 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
url
=
pictureUrl
+
urls
[
1
];;
}
photoUrls
.
put
(
datass
.
getDisplayName
().
split
(
"_"
)[
0
]+
"jddwz"
,
url
);
}
for
(
IndicatorsDto
data
:
listDatas
)
{
String
url
=
""
;
String
[]
urls
=
data
.
getPictureName
().
split
(
","
);
...
...
@@ -1087,7 +1088,11 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
}
else
{
url
=
pictureUrl
+
urls
[
1
];;
}
photoUrls
.
put
(
data
.
getDisplayName
().
split
(
"_"
)[
0
]+
"yfjdkgurl"
,
url
);
if
(
data
.
getDisplayName
().
split
(
"_"
).
length
>
2
){
photoUrls
.
put
(
KGName
.
getCode
(
data
.
getDisplayName
().
split
(
"_"
)[
1
]),
url
);
}
else
{
photoUrls
.
put
(
data
.
getDisplayName
().
split
(
"_"
)[
0
]+
"yfjdkgurl"
,
url
);
}
}
for
(
IndicatorsDto
listDatum
:
listData
)
{
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/resources/application-dev.properties
View file @
854c2ded
...
...
@@ -103,4 +103,4 @@ myqueue=amos.privilege.v1.JXIOP.AQSC_FDGL.userBusiness
# ?????????
fan.statuts.stattuspath
=
upload/jxiop/device_status
pictureUrl
=
pictureUrl
=
upload/jxiop/syz/
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