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
30c9899b
Commit
30c9899b
authored
May 08, 2021
by
高建强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
item:剔除区域数据同步冗余
parent
bec73f84
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
40 deletions
+0
-40
RiskSourceServiceImpl.java
...amos/fas/business/service/impl/RiskSourceServiceImpl.java
+0
-4
View3dServiceImpl.java
...oin/amos/fas/business/service/impl/View3dServiceImpl.java
+0
-4
DataSyncUtil.java
...java/com/yeejoin/amos/fas/business/util/DataSyncUtil.java
+0
-32
No files found.
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/impl/RiskSourceServiceImpl.java
View file @
30c9899b
...
...
@@ -24,7 +24,6 @@ import com.yeejoin.amos.fas.business.param.CommonPageInfoParam;
import
com.yeejoin.amos.fas.business.param.FmeaBindParam
;
import
com.yeejoin.amos.fas.business.service.intfc.*
;
import
com.yeejoin.amos.fas.business.service.model.ContingencyDeviceStatus
;
import
com.yeejoin.amos.fas.business.util.DataSyncUtil
;
import
com.yeejoin.amos.fas.business.util.DateUtils
;
import
com.yeejoin.amos.fas.business.util.JexlUtil
;
import
com.yeejoin.amos.fas.business.util.RpnUtils
;
...
...
@@ -187,9 +186,6 @@ public class RiskSourceServiceImpl implements IRiskSourceService {
@Autowired
private
PlanDetailMapper
planDetailMapper
;
@Autowired
private
DataSyncUtil
dataSyncUtil
;
public
static
String
cacheKeyForCanBeRunning
()
{
return
Redis
.
genKey
(
CacheType
.
ERASABLE
.
name
(),
"CONTINGENCYRUNING"
);
}
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/impl/View3dServiceImpl.java
View file @
30c9899b
...
...
@@ -21,7 +21,6 @@ import com.yeejoin.amos.fas.business.feign.IDutyModeServer;
import
com.yeejoin.amos.fas.business.feign.RemoteSecurityService
;
import
com.yeejoin.amos.fas.business.service.intfc.IDataRefreshService
;
import
com.yeejoin.amos.fas.business.service.intfc.IView3dService
;
import
com.yeejoin.amos.fas.business.util.DataSyncUtil
;
import
com.yeejoin.amos.fas.business.vo.*
;
import
com.yeejoin.amos.fas.common.enums.*
;
import
com.yeejoin.amos.fas.core.common.request.CommonPageable
;
...
...
@@ -99,9 +98,6 @@ public class View3dServiceImpl implements IView3dService {
@Autowired
private
RemoteSecurityService
remoteSecurityService
;
@Autowired
private
DataSyncUtil
dataSyncUtil
;
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
CommonResponse
setPoint3dPosition
(
List
<
BindPointBo
>
pointBoList
)
{
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/util/DataSyncUtil.java
deleted
100644 → 0
View file @
bec73f84
package
com
.
yeejoin
.
amos
.
fas
.
business
.
util
;
import
com.yeejoin.amos.fas.business.action.mq.WebMqttComponent
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.data.redis.core.RedisTemplate
;
import
org.springframework.stereotype.Component
;
/**
* @ProjectName: YeeAmosFireAutoSysRoot
* @Package: com.yeejoin.amos.fas.business.util
* @ClassName: DataSyncUtil
* @Author: Jianqiang Gao
* @Description: 数据同步工具类
* @Date: 2021/3/24 15:31
* @Version: 1.0
*/
@Component
public
class
DataSyncUtil
{
@Autowired
private
RedisTemplate
redisTemplate
;
@Autowired
private
WebMqttComponent
webMqttComponent
;
public
void
astDataSync
(
String
topic
,
String
message
)
{
redisTemplate
.
opsForValue
().
set
(
topic
,
message
);
webMqttComponent
.
publish
(
topic
.
substring
(
0
,
topic
.
lastIndexOf
(
"_"
)),
message
);
}
}
\ No newline at end of file
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