Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YeeAmosFireAutoSysRoot
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
station
YeeAmosFireAutoSysRoot
Commits
1f3bd292
Commit
1f3bd292
authored
Mar 14, 2023
by
高建强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
item:修改refreshRecord数据结构,修改getInitAlarm数据权限
parent
dcb843e1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
EquipmentSpecificIndexController.java
...business/controller/EquipmentSpecificIndexController.java
+1
-1
ContingencyInstanceImpl.java
...os/fas/business/service/impl/ContingencyInstanceImpl.java
+6
-1
No files found.
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/controller/EquipmentSpecificIndexController.java
View file @
1f3bd292
...
@@ -52,7 +52,7 @@ public class EquipmentSpecificIndexController extends BaseController {
...
@@ -52,7 +52,7 @@ public class EquipmentSpecificIndexController extends BaseController {
return
CommonResponseUtil
.
success
(
equipmentSpecificIndexService
.
queryInitAlarm
(
value
,
nameKeys
,
status
));
return
CommonResponseUtil
.
success
(
equipmentSpecificIndexService
.
queryInitAlarm
(
value
,
nameKeys
,
status
));
}
}
@Permission
//
@Permission
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"获取三维初始化告警信息"
,
notes
=
"获取三维初始化告警信息"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"获取三维初始化告警信息"
,
notes
=
"获取三维初始化告警信息"
)
@RequestMapping
(
value
=
"/getInitAlarm"
,
produces
=
"application/json;charset=UTF-8"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/getInitAlarm"
,
produces
=
"application/json;charset=UTF-8"
,
method
=
RequestMethod
.
GET
)
public
CommonResponse
getInitAlarm
(
@ApiParam
(
value
=
"物联采集属性值"
)
@RequestParam
(
required
=
false
)
String
value
,
public
CommonResponse
getInitAlarm
(
@ApiParam
(
value
=
"物联采集属性值"
)
@RequestParam
(
required
=
false
)
String
value
,
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/impl/ContingencyInstanceImpl.java
View file @
1f3bd292
package
com
.
yeejoin
.
amos
.
fas
.
business
.
service
.
impl
;
package
com
.
yeejoin
.
amos
.
fas
.
business
.
service
.
impl
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.yeejoin.amos.component.feign.model.FeignClientResult
;
import
com.yeejoin.amos.component.feign.model.FeignClientResult
;
import
com.yeejoin.amos.component.rule.RuleTrigger
;
import
com.yeejoin.amos.component.rule.RuleTrigger
;
...
@@ -288,7 +289,11 @@ public class ContingencyInstanceImpl implements IContingencyInstance {
...
@@ -288,7 +289,11 @@ public class ContingencyInstanceImpl implements IContingencyInstance {
String
topic
=
String
.
format
(
"/%s/%s/%s"
,
serviceName
,
stationName
,
"plan"
);
String
topic
=
String
.
format
(
"/%s/%s/%s"
,
serviceName
,
stationName
,
"plan"
);
System
.
out
.
println
(
"=========================> 刷新聊天记录 refreshRecord "
);
System
.
out
.
println
(
"=========================> 刷新聊天记录 refreshRecord "
);
webMqttComponent
.
publish
(
topic
,
"{\"msgType\":\"refreshRecord\"}"
);
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"contingency"
,
new
ContingencyRo
());
map
.
put
(
"msgContext"
,
Collections
.
EMPTY_MAP
);
map
.
put
(
"msgType"
,
"refreshRecord"
);
webMqttComponent
.
publish
(
topic
,
JSON
.
toJSONString
(
map
));
}
}
}
else
{
}
else
{
throw
new
Exception
(
"数据异常,请联系管理员."
);
throw
new
Exception
(
"数据异常,请联系管理员."
);
...
...
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