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
95ff9119
Commit
95ff9119
authored
May 06, 2020
by
单奇雲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调试接口
parent
2cb81c97
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
+12
-3
DataRefreshTypeEum.java
...com/yeejoin/amos/fas/common/enums/DataRefreshTypeEum.java
+3
-3
RiskSourceServiceImpl.java
...amos/fas/business/service/impl/RiskSourceServiceImpl.java
+9
-0
No files found.
YeeAmosFireAutoSysCommon/src/main/java/com/yeejoin/amos/fas/common/enums/DataRefreshTypeEum.java
View file @
95ff9119
...
@@ -17,11 +17,11 @@ public enum DataRefreshTypeEum {
...
@@ -17,11 +17,11 @@ public enum DataRefreshTypeEum {
trouble
(
"设备故障"
,
"trouble"
),
trouble
(
"设备故障"
,
"trouble"
),
dutyChange
(
"值班信息"
,
"dutyChange"
);
dutyChange
(
"值班信息"
,
"dutyChange"
);
private
String
name
;
private
String
code
;
private
String
code
;
private
String
name
;
DataRefreshTypeEum
(
String
name
,
String
code
){
DataRefreshTypeEum
(
String
code
,
String
name
){
this
.
name
=
name
;
this
.
name
=
name
;
this
.
code
=
code
;
this
.
code
=
code
;
}
}
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/impl/RiskSourceServiceImpl.java
View file @
95ff9119
...
@@ -49,6 +49,9 @@ import org.typroject.tyboot.component.cache.Redis;
...
@@ -49,6 +49,9 @@ import org.typroject.tyboot.component.cache.Redis;
import
org.typroject.tyboot.component.cache.enumeration.CacheType
;
import
org.typroject.tyboot.component.cache.enumeration.CacheType
;
import
javax.annotation.PostConstruct
;
import
javax.annotation.PostConstruct
;
import
static
org
.
hamcrest
.
CoreMatchers
.
nullValue
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
java.text.SimpleDateFormat
;
import
java.text.SimpleDateFormat
;
import
java.util.*
;
import
java.util.*
;
...
@@ -1191,6 +1194,12 @@ public class RiskSourceServiceImpl implements IRiskSourceService {
...
@@ -1191,6 +1194,12 @@ public class RiskSourceServiceImpl implements IRiskSourceService {
content
.
put
(
"id"
,
fireEquipmentData
.
getId
());
content
.
put
(
"id"
,
fireEquipmentData
.
getId
());
content
.
put
(
"label"
,
fireEquipmentData
.
getEqPointName
());
content
.
put
(
"label"
,
fireEquipmentData
.
getEqPointName
());
content
.
put
(
"changeDate"
,
fireEquipmentData
.
getCreateDate
());
content
.
put
(
"changeDate"
,
fireEquipmentData
.
getCreateDate
());
Optional
<
FireEquipment
>
fireEquipment
=
iFireEquipmentDao
.
findById
(
fireEquipmentPoint
.
getFireEquipmentId
());
if
(
fireEquipment
.
isPresent
())
{
content
.
put
(
"orgCode"
,
fireEquipment
.
get
().
getOrgCode
());
}
else
{
log
.
info
(
fireEquipmentPoint
.
getFireEquipmentId
()
+
"设备不存在!!!"
);
}
iDataRefreshService
.
sendRefreshDataWithArea
(
DataRefreshTypeEum
.
monitor
.
getCode
(),
content
);
iDataRefreshService
.
sendRefreshDataWithArea
(
DataRefreshTypeEum
.
monitor
.
getCode
(),
content
);
}
}
...
...
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