Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
finance-api
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Data-王博
finance-api
Commits
c495852f
Commit
c495852f
authored
Feb 22, 2017
by
Data-王博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
湖北消金 - 修改金额不正确时显示的错误码,修改回盘文件无论是否发送成功 都发出邮件
parent
0e45e267
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
12 deletions
+20
-12
HuBeiReturnDiscScheduler.java
...ntgroup/financial/scheduler/HuBeiReturnDiscScheduler.java
+4
-1
HuBeiServiceImpl.java
...n/quantgroup/financial/service/impl/HuBeiServiceImpl.java
+7
-2
HubeiCFCUtil.java
src/main/java/cn/quantgroup/financial/util/HubeiCFCUtil.java
+1
-1
application.properties
src/main/resources/config/local/application.properties
+8
-8
No files found.
src/main/java/cn/quantgroup/financial/scheduler/HuBeiReturnDiscScheduler.java
View file @
c495852f
...
...
@@ -121,7 +121,10 @@ public class HuBeiReturnDiscScheduler {
scheduleAdvanceRepay
.
registerService
(
scheduledExecutorService
,
iHuBeiService
,
iHuBeiCFCDao
,
huBeiHandlerDispatcher
);
scheduledExecutorService
.
schedule
(
scheduleAdvanceRepay
,
HubeiCFCField
.
thirtyMintes
,
TimeUnit
.
MINUTES
);
}
if
(
debitResponse
==
null
||
advanceResponse
==
null
||
compensationResponse
==
null
){
if
(
debitResponse
==
null
||
advanceResponse
==
null
||
compensationResponse
==
null
||!
HubeiCFCField
.
EC_SUCCESS_CODE
.
equals
(
advanceResponse
.
getEc
())
||!
HubeiCFCField
.
EC_SUCCESS_CODE
.
equals
(
compensationResponse
.
getEc
())
||!
HubeiCFCField
.
EC_SUCCESS_CODE
.
equals
(
debitResponse
.
getEc
())){
iHuBeiService
.
sendErrorMailNotice
(
"回盘文件发送失败,请悉知 联系相关人员"
);
}
}
...
...
src/main/java/cn/quantgroup/financial/service/impl/HuBeiServiceImpl.java
View file @
c495852f
...
...
@@ -160,8 +160,13 @@ public class HuBeiServiceImpl implements IHuBeiService {
requestMap
.
put
(
HubeiCFCField
.
xmlString
,
requestBody
);
String
filePre
=
docName
==
null
?
dataType
.
get
()+
"_"
:
dataType
.
get
()+
"_"
+
docName
;
saveHistoryFile
(
requestBody
,
filePre
+
"_request"
);
HttpResult
httpResult
=
NetUtil
.
postRequestUrl
(
hubeiApiUrl
,
requestMap
,
headerMap
,
SysConstant
.
retryOneNums
);
if
(
httpResult
.
getStatus
()==
NetUtil
.
RequestStatus
.
SUCCESS_STATUS
){
HttpResult
httpResult
=
null
;
try
{
httpResult
=
NetUtil
.
postRequestUrl
(
hubeiApiUrl
,
requestMap
,
headerMap
,
SysConstant
.
retryOneNums
);
}
catch
(
Exception
e
)
{
logger
.
error
(
e
.
getMessage
(),
e
);
}
if
(
httpResult
!=
null
&&
httpResult
.
getStatus
()==
NetUtil
.
RequestStatus
.
SUCCESS_STATUS
){
String
responseBody
=
httpResult
.
getResult
();
saveHistoryFile
(
responseBody
,
filePre
+
"_response"
);
if
(
logger
.
isDebugEnabled
()){
...
...
src/main/java/cn/quantgroup/financial/util/HubeiCFCUtil.java
View file @
c495852f
...
...
@@ -68,7 +68,7 @@ public class HubeiCFCUtil {
return
BigDecimal
.
ZERO
;
}
BigDecimal
overDueFee
=
principal
.
multiply
(
BigDecimal
.
valueOf
(
overdueDays
)).
multiply
(
new
BigDecimal
(
"0.1401"
));
overDueFee
=
overDueFee
.
divide
(
BigDecimal
.
valueOf
(
360
),
2
,
RoundingMode
.
HALF_UP
);
overDueFee
=
overDueFee
.
divide
(
BigDecimal
.
valueOf
(
360
),
6
,
RoundingMode
.
HALF_UP
);
return
overDueFee
;
}
...
...
src/main/resources/config/local/application.properties
View file @
c495852f
...
...
@@ -4,20 +4,20 @@ server.session-timeout=5184000
compensationday.file.path
=
compensation-days.json
rapi.xyqb.plans
=
http://192.168.4.6:7005/external/hubei/plans
#测试环境 湖北消金通信接口
thirdparty.api.hubei
=
http://116.211.134.215/Gateway/servlet/OutsiteReqServlet
#
thirdparty.api.hubei=http://127.0.0.1/Gateway/servlet/OutsiteReqServlet
#
thirdparty.api.hubei=http://116.211.134.215/Gateway/servlet/OutsiteReqServlet
thirdparty.api.hubei
=
http://127.0.0.1/Gateway/servlet/OutsiteReqServlet
api.jdbc.driverClassName
=
com.mysql.jdbc.Driver
api.jdbc.url
=
jdbc:mysql://1
92.168.4.190
:3306/financial_system_api?useUnicode=true&characterEncoding=UTF8
api.jdbc.username
=
financial_user_rw
api.jdbc.password
=
quant_financial_rw
api.jdbc.url
=
jdbc:mysql://1
27.0.0.1
:3306/financial_system_api?useUnicode=true&characterEncoding=UTF8
api.jdbc.username
=
root
api.jdbc.password
=
root
api.jdbc.maxActive
=
500
api.jdbc.minIdle
=
20
system.jdbc.driverClassName
=
com.mysql.jdbc.Driver
system.jdbc.url
=
jdbc:mysql://1
92.168.4.190
:3306/financial_system?useUnicode=true&characterEncoding=UTF8
system.jdbc.username
=
financial_user_rw
system.jdbc.password
=
quant_financial_rw
system.jdbc.url
=
jdbc:mysql://1
27.0.0.1
:3306/financial_system?useUnicode=true&characterEncoding=UTF8
system.jdbc.username
=
root
system.jdbc.password
=
root
system.jdbc.maxActive
=
200
system.jdbc.minIdle
=
20
...
...
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