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
907a60f8
Commit
907a60f8
authored
Apr 21, 2022
by
李成龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
气瓶预警消息
parent
abcd8f35
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
CylWarningMsgAction.java
.../amos/boot/module/tzs/biz/action/CylWarningMsgAction.java
+10
-8
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/action/CylWarningMsgAction.java
View file @
907a60f8
...
...
@@ -65,9 +65,9 @@ public class CylWarningMsgAction{
msgLog
.
setRelationCode
(
cylWarningMsgDto
.
getCylSeq
());
msgLog
.
setMsgType
(
EarlyWarningLevelEnum
.
getEumByLevel
(
level
).
getCode
());
msgLog
.
setMsgTypeName
(
EarlyWarningLevelEnum
.
getEumByLevel
(
level
).
getName
());
msgLog
.
setBody
(
text
);
msgLog
.
setTargetCode
(
phone
);
msgLog
.
setTargetName
(
orgUserName
);
msgLog
.
setBody
(
instedParams
(
text
,
cylWarningMsgDto
)
);
msgLog
.
setTargetCode
(
instedParams
(
phone
,
cylWarningMsgDto
)
);
msgLog
.
setTargetName
(
instedParams
(
orgUserName
,
cylWarningMsgDto
)
);
msgLog
.
setTerminalType
(
"WEB"
);
msgLog
.
setSendTime
(
new
Date
());
msgLogServiceImpl
.
save
(
msgLog
);
...
...
@@ -93,9 +93,9 @@ public class CylWarningMsgAction{
msgLog
.
setRelationCode
(
cylWarningMsgDto
.
getCylSeq
());
msgLog
.
setMsgType
(
EarlyWarningLevelEnum
.
getEumByLevel
(
level
).
getCode
());
msgLog
.
setMsgTypeName
(
EarlyWarningLevelEnum
.
getEumByLevel
(
level
).
getName
());
msgLog
.
setBody
(
text
);
msgLog
.
setTargetCode
(
phone
);
msgLog
.
setTargetName
(
orgUserName
);
msgLog
.
setBody
(
instedParams
(
text
,
cylWarningMsgDto
)
);
msgLog
.
setTargetCode
(
instedParams
(
phone
,
cylWarningMsgDto
)
);
msgLog
.
setTargetName
(
instedParams
(
orgUserName
,
cylWarningMsgDto
)
);
msgLog
.
setTerminalType
(
"APP"
);
msgLog
.
setSendTime
(
new
Date
());
msgLogServiceImpl
.
save
(
msgLog
);
...
...
@@ -120,7 +120,9 @@ public class CylWarningMsgAction{
// Map<String, String> strengthMap = this.getStrengthMap(contingencyRo);
// for (String key : strengthMap.keySet())
// content = content.replaceAll("\\$\\{" + key + "}", strengthMap.get(key));
if
(
null
==
content
||
!
content
.
contains
(
"$"
))
{
return
content
;
}
Field
[]
fields
=
contingencyRo
.
getClass
().
getDeclaredFields
();
Method
getMethod
=
null
;
try
{
...
...
@@ -130,7 +132,7 @@ public class CylWarningMsgAction{
String
fileNameInMethod
=
String
.
valueOf
(
field
.
getName
().
charAt
(
0
)).
toUpperCase
()
+
field
.
getName
().
substring
(
1
);
getMethod
=
contingencyRo
.
getClass
().
getMethod
(
"get"
+
fileNameInMethod
);
String
value
=
String
.
valueOf
(
getMethod
.
invoke
(
contingencyRo
));
content
=
content
.
replaceAll
(
"\\$\\{"
+
field
.
getName
()
+
"}"
,
value
);
content
=
content
.
replaceAll
(
"\\$\\{"
+
field
.
getName
()
+
"}"
,
value
.
equals
(
"null"
)?
""
:
value
);
}
content
=
getNative
(
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