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
2220f0b4
Commit
2220f0b4
authored
Dec 12, 2020
by
KeYong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
改为启动订阅
parent
32a014fc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
6 deletions
+27
-6
ContingencyLogListener.java
...join/amos/fas/business/action/ContingencyLogListener.java
+0
-5
SafetyController.java
...eejoin/amos/fas/business/controller/SafetyController.java
+0
-1
ApplicationRunnerImpl.java
...va/com/yeejoin/amos/fas/config/ApplicationRunnerImpl.java
+27
-0
No files found.
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/action/ContingencyLogListener.java
View file @
2220f0b4
...
...
@@ -15,14 +15,9 @@ public class ContingencyLogListener implements ApplicationListener<ContingencyEv
@Autowired
IRuleRunningSnapshotService
ruleRunningSnapshotService
;
// @Autowired
// @Lazy
// IEquipmentHandlerService equipmentHandlerService;
@Override
public
void
onApplicationEvent
(
ContingencyEvent
event
)
{
ruleRunningSnapshotService
.
reacordPlan
(
event
.
getTopic
(),
event
.
getMsgType
(),
event
.
getMsgBody
(),
event
.
getContingency
());
// equipmentHandlerService.subscribeTopic();
}
}
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/controller/SafetyController.java
View file @
2220f0b4
...
...
@@ -44,7 +44,6 @@ public class SafetyController extends BaseController{
@PostMapping
(
value
=
"/save/curCompany"
)
public
CommonResponse
saveCurCompany
(
@RequestBody
ReginParams
reginParams
)
{
this
.
saveSelectedOrgInfo
(
reginParams
);
equipmentHandlerService
.
subscribeTopic
();
return
CommonResponseUtil
.
success
();
}
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/config/ApplicationRunnerImpl.java
0 → 100644
View file @
2220f0b4
package
com
.
yeejoin
.
amos
.
fas
.
config
;
import
com.yeejoin.amos.fas.business.service.intfc.IEquipmentHandlerService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.ApplicationArguments
;
import
org.springframework.boot.ApplicationRunner
;
import
org.springframework.stereotype.Component
;
/**
* @author keyong
* @title: ApplicationRunnerImpl
* <pre>
* @description: TODO
* </pre>
* @date 2020/12/12 20:18
*/
@Component
public
class
ApplicationRunnerImpl
implements
ApplicationRunner
{
@Autowired
IEquipmentHandlerService
equipmentHandlerService
;
@Override
public
void
run
(
ApplicationArguments
args
)
throws
Exception
{
equipmentHandlerService
.
subscribeTopic
();
}
}
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