Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nouiWithSpringMVC
Overview
Overview
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
gechengyang
nouiWithSpringMVC
Commits
090681dc
Commit
090681dc
authored
Aug 14, 2020
by
cjh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增配置文件根据交易码判断是否打印返回报文
parent
b07ee321
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
1 deletions
+22
-1
ServiceImpl.java
...main/java/cn/com/brilliance/eibs/service/ServiceImpl.java
+18
-1
ignoreLog.properties
src/main/resources/ignoreLog.properties
+4
-0
No files found.
src/main/java/cn/com/brilliance/eibs/service/ServiceImpl.java
View file @
090681dc
...
...
@@ -5,6 +5,8 @@ import cn.com.brilliance.eibs.channel.impl.BdRouterImpl;
import
cn.com.brilliance.eibs.channel.impl.GdRouterImpl
;
import
com.dc.eai.data.CompositeData
;
import
com.dcfs.esb.server.service.Service
;
import
org.apache.commons.io.FileUtils
;
import
org.apache.commons.io.IOUtils
;
import
org.apache.commons.logging.Log
;
import
org.apache.commons.logging.LogFactory
;
import
org.sss.presentation.noui.api.response.ErrorCodes
;
...
...
@@ -12,6 +14,9 @@ import org.sss.presentation.noui.api.response.Result;
import
org.sss.presentation.noui.common.Constants
;
import
org.sss.presentation.noui.util.ESBUtil
;
import
java.io.File
;
import
java.io.IOException
;
public
class
ServiceImpl
implements
Service
{
private
static
Log
log
=
LogFactory
.
getLog
(
ServiceImpl
.
class
);
...
...
@@ -38,7 +43,19 @@ public class ServiceImpl implements Service {
}
CompositeData
respData
=
router
.
run
(
reqData
);
log
.
info
(
"return message is : "
+
respData
);
String
filename
=
"ignoreLog.properties"
;
String
ignoreList
=
""
;
try
{
ignoreList
=
IOUtils
.
toString
(
this
.
getClass
().
getResourceAsStream
(
"/"
+
filename
),
"utf-8"
);
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
}
CompositeData
sys_head
=
reqData
.
getStruct
(
Constants
.
SYS_HEAD
);
String
code
=
(
String
)
sys_head
.
getField
(
Constants
.
SERVICE_CODE
).
getValue
();
String
scene
=
(
String
)
sys_head
.
getField
(
Constants
.
SERVICE_SCENE
).
getValue
();
if
(!
ignoreList
.
contains
(
code
+
"."
+
scene
)){
log
.
info
(
"return message is : "
+
respData
);
}
return
respData
;
}
...
...
src/main/resources/ignoreLog.properties
0 → 100644
View file @
090681dc
111.01
111.02
111.03
\ 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