Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
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
fangxinjiang
yifu-mvp
Commits
fabb54f1
Commit
fabb54f1
authored
Aug 20, 2024
by
huyuchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工行对接修改
parent
0dea854b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
IcbcTransactionFlowIssueServiceImpl.java
...ekp/service/impl/IcbcTransactionFlowIssueServiceImpl.java
+10
-6
No files found.
yifu-ekp/yifu-ekp-biz/src/main/java/com/yifu/cloud/plus/v1/ekp/service/impl/IcbcTransactionFlowIssueServiceImpl.java
View file @
fabb54f1
package
com
.
yifu
.
cloud
.
plus
.
v1
.
ekp
.
service
.
impl
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.icbc.api.DefaultIcbcClient
;
...
...
@@ -68,9 +69,10 @@ public class IcbcTransactionFlowIssueServiceImpl extends ServiceImpl<EkpSocialIn
bizContent
.
setOprType
(
"1"
);
bizContent
.
setTotalAmt
(
"2"
);
bizContent
.
setTotalCount
(
"2"
);
bizContent
.
setAppSerialno
(
"WX03"
);
bizContent
.
setLocalFilepath
(
"D:/icbcFile/020101190_WX03_0_20240816.xls"
);
bizContent
.
setFileMdcode
(
getMdCode
(
"D:/icbcFile/020101190_WX03_0_20240816.xls"
));
bizContent
.
setAppSerialno
(
"WX04"
);
bizContent
.
setFileCheckSign
(
"1"
);
bizContent
.
setLocalFilepath
(
"D:/icbcFile/020101190_WX04_0_20240819.xls"
);
bizContent
.
setFileMdcode
(
getMdCode
(
"D:/icbcFile/020101190_WX04_0_20240819.xls"
));
bizContent
.
setFileType
(
"1"
);
bizContent
.
setNotifyUrl
(
null
);
bizContent
.
setAppRemark
(
"备注"
);
...
...
@@ -78,6 +80,8 @@ public class IcbcTransactionFlowIssueServiceImpl extends ServiceImpl<EkpSocialIn
jsonObject
.
put
(
"key"
,
request
);
String
a
=
jsonObject
.
toJSONString
();
request
.
setBizContent
(
bizContent
);
System
.
out
.
println
(
"request: "
+
JSON
.
toJSONString
(
request
));
try
{
String
result
=
client
.
buildPostForm
(
request
);
if
(
Common
.
isNotNull
(
result
))
{
...
...
@@ -111,9 +115,9 @@ public class IcbcTransactionFlowIssueServiceImpl extends ServiceImpl<EkpSocialIn
bizContent
.
setOutVendorId
(
"020101190"
);
bizContent
.
setType
(
"2"
);
//批次号,appSerialno为空时,必输
bizContent
.
setAppBatserialno
(
"WX0
1
"
);
bizContent
.
setAppBatserialno
(
"WX0
4
"
);
//内部批次号,组成规则:批次号-顺序号,appBatserialno为空时必输
// bizContent.setAppSerialno("
23092
1");
// bizContent.setAppSerialno("
WX04-
1");
bizContent
.
setStartId
(
"0"
);
bizContent
.
setEndId
(
"10"
);
request
.
setBizContent
(
bizContent
);
...
...
@@ -212,7 +216,7 @@ public class IcbcTransactionFlowIssueServiceImpl extends ServiceImpl<EkpSocialIn
byte
[]
buffer
=
new
byte
[
1024
];
String
mdCode
;
try
{
MessageDigest
digest
=
MessageDigest
.
getInstance
(
"
MD5
"
);
MessageDigest
digest
=
MessageDigest
.
getInstance
(
"
SHA-256
"
);
in
=
new
FileInputStream
(
filePath
);
int
len
;
while
((
len
=
in
.
read
(
buffer
,
0
,
1024
))
!=
-
1
)
{
...
...
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