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
6a45626d
Commit
6a45626d
authored
Jun 06, 2017
by
Data-王博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复重复推送 第一次数据错误问题,回盘文件空行问题
parent
18f0805c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
HuBeiServiceImpl.java
...n/quantgroup/financial/service/impl/HuBeiServiceImpl.java
+5
-1
readme.md
src/main/resources/readme.md
+4
-0
No files found.
src/main/java/cn/quantgroup/financial/service/impl/HuBeiServiceImpl.java
View file @
6a45626d
...
...
@@ -327,6 +327,7 @@ public class HuBeiServiceImpl implements IHuBeiService {
String
base64String
=
""
;
List
<
HuBeiHistory
>
errorHuBeiHistoryList
=
new
ArrayList
<>();
Date
deadline
=
HubeiCFCUtil
.
getTodayDeadLine
();
int
cursor
=
0
;
if
(
huBeiHistoryList
!=
null
&&
huBeiHistoryList
.
size
()>
0
){
int
size
=
huBeiHistoryList
.
size
();
for
(
int
index
=
0
;
index
<
size
;
index
++){
...
...
@@ -363,15 +364,18 @@ public class HuBeiServiceImpl implements IHuBeiService {
logger
.
info
(
"jsonBean is null, history={}"
,
JSON
.
toJSONString
(
history
));
}
}
if
(
index
==
0
){
if
(
cursor
==
0
){
stringBuilder
.
append
(
huBeiHandlerDispatcher
.
builder
(
hubeiCFCDataType
,
history
));
cursor
++;
}
else
{
stringBuilder
.
append
(
"\r"
).
append
(
huBeiHandlerDispatcher
.
builder
(
hubeiCFCDataType
,
history
));
cursor
++;
}
}
if
(!
CollectionUtils
.
isEmpty
(
errorHuBeiHistoryList
)){
sendErrorMailNotice
(
errorHuBeiHistoryList
,
"以下是应扣金额与实扣金额不符:\r\n"
);
}
logger
.
info
(
"returnDisc fileContent={}"
,
stringBuilder
.
toString
());
base64String
=
new
String
(
Base64
.
encodeBase64Chunked
(
stringBuilder
.
toString
().
getBytes
(
EncodingConfig
.
defaultCharset
)),
EncodingConfig
.
defaultCharset
);
}
...
...
src/main/resources/readme.md
View file @
6a45626d
部署须知
----
域名
financial-api.xyqb.com
maven打包 三种选项:
`-Plocal`
本地
`-Ptest`
测试环境
...
...
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