Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-support-rlwx
Project
Project
Details
Activity
Releases
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
rl
hls-support-rlwx
Commits
63c600e2
Commit
63c600e2
authored
Dec 20, 2022
by
5359
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
正式环境参数修改
parent
a1c81687
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
6 deletions
+33
-6
PingAnController.java
...ava/com/hand/app/pingAn/controllers/PingAnController.java
+3
-2
PingAnServiceImpl.java
...a/com/hand/app/pingAn/service/impl/PingAnServiceImpl.java
+5
-3
logback.xml
core/src/main/resources/logback.xml
+22
-0
pingAn.properties
core/src/main/resources/pingAn.properties
+3
-1
No files found.
core/src/main/java/com/hand/app/pingAn/controllers/PingAnController.java
View file @
63c600e2
...
@@ -45,9 +45,10 @@ public class PingAnController extends BaseController {
...
@@ -45,9 +45,10 @@ public class PingAnController extends BaseController {
@ApiModelProperty
(
"明细通知接口(BEDL_ZNA001)"
)
@ApiModelProperty
(
"明细通知接口(BEDL_ZNA001)"
)
@RequestMapping
(
"/api/public/pingAn/notify"
)
@RequestMapping
(
"/api/public/pingAn/notify"
)
@ResponseBody
@ResponseBody
public
ResponseData
DetailsNotify
(
HttpServletRequest
request
,
JSONObject
data
){
public
String
DetailsNotify
(
HttpServletRequest
request
,
JSONObject
data
){
IRequest
iRequest
=
createRequestContext
(
request
);
IRequest
iRequest
=
createRequestContext
(
request
);
return
pingAnService
.
detailNotify
(
iRequest
,
data
);
pingAnService
.
detailNotify
(
iRequest
,
data
);
return
"A001010101009010800000099910000000001939ZNA001123450120120620151810201206180000011037 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
;
}
}
@ApiModelProperty
(
"清分台账明细下载(BEDL_F0P101)"
)
@ApiModelProperty
(
"清分台账明细下载(BEDL_F0P101)"
)
...
...
core/src/main/java/com/hand/app/pingAn/service/impl/PingAnServiceImpl.java
View file @
63c600e2
...
@@ -87,6 +87,7 @@ public class PingAnServiceImpl implements PingAnService {
...
@@ -87,6 +87,7 @@ public class PingAnServiceImpl implements PingAnService {
/*插入接口日志表*/
/*插入接口日志表*/
HlsWsRequests
hlsWsRequests
=
new
HlsWsRequests
();
HlsWsRequests
hlsWsRequests
=
new
HlsWsRequests
();
hlsWsRequests
=
createRequestLog
(
pro
.
getProperty
(
"baseUrl"
)
+
"/V1.0/"
+
interfaceName
,
requestBody
.
toJSONString
(),
1L
);
hlsWsRequests
=
createRequestLog
(
pro
.
getProperty
(
"baseUrl"
)
+
"/V1.0/"
+
interfaceName
,
requestBody
.
toJSONString
(),
1L
);
logger
.
info
(
"发送接口:"
+
interfaceName
+
"请求,请求参数: {}"
,
requestBody
.
toString
());
try
{
try
{
HttpResult
result
=
ApiUtils
.
invoke
(
interfaceName
,
requestBody
);
HttpResult
result
=
ApiUtils
.
invoke
(
interfaceName
,
requestBody
);
if
(
Objects
.
nonNull
(
result
))
{
if
(
Objects
.
nonNull
(
result
))
{
...
@@ -106,11 +107,11 @@ public class PingAnServiceImpl implements PingAnService {
...
@@ -106,11 +107,11 @@ public class PingAnServiceImpl implements PingAnService {
}
}
responseData
.
put
(
"data"
,
res
);
responseData
.
put
(
"data"
,
res
);
// 具体业务是否请求成功判定,目前观察成功请求可能没有Code值
// 具体业务是否请求成功判定,目前观察成功请求可能没有Code值
if
(
"000000"
.
equals
(
res
.
getString
(
"Code"
))
||
Objects
.
isNull
(
res
.
getString
(
"Code"
)))
{
if
(
Objects
.
isNull
(
res
.
getString
(
"Code"
))
||
"000000"
.
equals
(
res
.
getString
(
"Code"
)))
{
if
(
"bedl/DetailReportQueryNew"
.
equals
(
interfaceName
))
{
if
(
"bedl/DetailReportQueryNew"
.
equals
(
interfaceName
))
{
dowloadDetailFile
(
res
);
dowloadDetailFile
(
res
);
}
}
hlsWsRequests
.
setReturnStatus
(
"
s
"
);
hlsWsRequests
.
setReturnStatus
(
"
S
"
);
responseData
.
put
(
Constants
.
RESP_CODE
,
"0000"
);
responseData
.
put
(
Constants
.
RESP_CODE
,
"0000"
);
responseData
.
put
(
"respMsg"
,
"请求成功"
);
responseData
.
put
(
"respMsg"
,
"请求成功"
);
}
else
{
}
else
{
...
@@ -125,7 +126,7 @@ public class PingAnServiceImpl implements PingAnService {
...
@@ -125,7 +126,7 @@ public class PingAnServiceImpl implements PingAnService {
}
}
}
else
{
}
else
{
//请求失败
//请求失败
hlsWsRequests
.
setReturnStatus
(
"
f
"
);
hlsWsRequests
.
setReturnStatus
(
"
E
"
);
JSONObject
errRes
=
JSONObject
.
parseObject
(
result
.
getData
());
JSONObject
errRes
=
JSONObject
.
parseObject
(
result
.
getData
());
responseData
.
put
(
Constants
.
RESP_CODE
,
result
.
getCode
());
responseData
.
put
(
Constants
.
RESP_CODE
,
result
.
getCode
());
responseData
.
put
(
Constants
.
RESP_MSG
,
"请求失败"
);
responseData
.
put
(
Constants
.
RESP_MSG
,
"请求失败"
);
...
@@ -189,6 +190,7 @@ public class PingAnServiceImpl implements PingAnService {
...
@@ -189,6 +190,7 @@ public class PingAnServiceImpl implements PingAnService {
headInfo
.
put
(
"Content-Type"
,
"application/x-www-form-urlencoded"
);
headInfo
.
put
(
"Content-Type"
,
"application/x-www-form-urlencoded"
);
JSONObject
requestData
=
new
JSONObject
();
JSONObject
requestData
=
new
JSONObject
();
requestData
.
put
(
"requestData"
,
params
);
requestData
.
put
(
"requestData"
,
params
);
logger
.
info
(
"发送接口:writeOffLd016请求,请求参数: {}"
,
requestData
.
toString
());
//发送http请求
//发送http请求
SignHclcUtils
signHclcUtils1
=
new
SignHclcUtils
();
SignHclcUtils
signHclcUtils1
=
new
SignHclcUtils
();
String
stringResult
=
signHclcUtils1
.
postString
(
url
,
requestData
,
headInfo
,
SignHclcUtils
.
APPLICATION_FORM_URLENCODED
);
String
stringResult
=
signHclcUtils1
.
postString
(
url
,
requestData
,
headInfo
,
SignHclcUtils
.
APPLICATION_FORM_URLENCODED
);
...
...
core/src/main/resources/logback.xml
View file @
63c600e2
...
@@ -85,6 +85,25 @@
...
@@ -85,6 +85,25 @@
</sift>
</sift>
</appender>
</appender>
<appender
name=
"PAB-FILE"
class=
"ch.qos.logback.classic.sift.SiftingAppender"
>
<discriminator>
<key>
logName
</key>
<defaultValue>
default
</defaultValue>
</discriminator>
<sift>
<appender
name=
"REQ-${logName}"
class=
"ch.qos.logback.core.rolling.RollingFileAppender"
>
<encoder>
<pattern>
%d{yyyy-MM-dd HH:mm:ss.SSS} %-5level [%X{userId}] [%X{requestId}] %logger - %msg%n
</pattern>
</encoder>
<file>
${catalina.base}/logs/hls-pab-${logName}.log
</file>
<rollingPolicy
class=
"ch.qos.logback.core.rolling.TimeBasedRollingPolicy"
>
<fileNamePattern>
${catalina.base}/logs/%d{yyyy-MM-dd}/hls-pab-${logName}.log
</fileNamePattern>
</rollingPolicy>
</appender>
</sift>
</appender>
<root
level=
"ERROR"
>
<root
level=
"ERROR"
>
<appender-ref
ref=
"STDOUT"
/>
<appender-ref
ref=
"STDOUT"
/>
...
@@ -143,4 +162,7 @@
...
@@ -143,4 +162,7 @@
<logger
name=
"com.hand.app.cmb.service.impl.HclcCmbPolyServiceImpl"
level=
"INFO"
additivity=
"false"
>
<logger
name=
"com.hand.app.cmb.service.impl.HclcCmbPolyServiceImpl"
level=
"INFO"
additivity=
"false"
>
<appender-ref
ref=
"CMB-FILE"
/>
<appender-ref
ref=
"CMB-FILE"
/>
</logger>
</logger>
<logger
name=
"com.hand.app.pingAn.service.impl.PingAnServiceImpl"
level=
"INFO"
additivity=
"false"
>
<appender-ref
ref=
"PAB-FILE"
/>
</logger>
</configuration>
</configuration>
\ No newline at end of file
core/src/main/resources/pingAn.properties
View file @
63c600e2
...
@@ -7,3 +7,5 @@ fileUploadUrl=https://my-st1.orangebank.com.cn:567/fat7/openapi/file/boapFile/up
...
@@ -7,3 +7,5 @@ fileUploadUrl=https://my-st1.orangebank.com.cn:567/fat7/openapi/file/boapFile/up
fileDownLoadUrl
=
https://my-st1.orangebank.com.cn:567/fat7/openapi/file/boapFile/download
fileDownLoadUrl
=
https://my-st1.orangebank.com.cn:567/fat7/openapi/file/boapFile/download
queryOrderFileUrl
=
https://my-st1.orangebank.com.cn:567/fat7/openapi/file/boapFile/queryOrderFile
queryOrderFileUrl
=
https://my-st1.orangebank.com.cn:567/fat7/openapi/file/boapFile/queryOrderFile
fileDownLoadOrderFileUrl
=
https://my-st1.orangebank.com.cn:567/fat7/openapi/file/boapFile/downloadOrderFile
fileDownLoadOrderFileUrl
=
https://my-st1.orangebank.com.cn:567/fat7/openapi/file/boapFile/downloadOrderFile
MrchCode
=
0090108040000KTAR000
AcctNo
=
15000101414037
\ 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