Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
holmes
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
holmes
Commits
a86194b5
Commit
a86194b5
authored
Mar 11, 2022
by
黎博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
暂时停掉对账定时任务
parent
39753929
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
18 deletions
+2
-18
ReconciliationTask.java
src/main/java/cn/qg/holmes/task/ReconciliationTask.java
+2
-18
No files found.
src/main/java/cn/qg/holmes/task/ReconciliationTask.java
View file @
a86194b5
...
...
@@ -64,7 +64,7 @@ public class ReconciliationTask {
* 微信商户后台与支付中心数据对账
*/
// @Scheduled(cron = "0 */5 * * * ?")
@Scheduled
(
cron
=
"0 0 13 ? * *"
)
//
@Scheduled(cron = "0 0 13 ? * *")
public
void
wxPayDailyReconciliation
()
{
if
(
scheduledTaskStart
.
equals
(
"true"
))
{
log
.
info
(
"开始微信支付对账."
);
...
...
@@ -248,7 +248,7 @@ public class ReconciliationTask {
* 支付宝商户后台与支付中心数据对账
*/
// @Scheduled(cron = "0 */5 * * * ?")
@Scheduled
(
cron
=
"0 0 13 ? * *"
)
//
@Scheduled(cron = "0 0 13 ? * *")
public
void
aliPayDailyReconciliation
()
throws
AlipayApiException
,
IOException
{
if
(
scheduledTaskStart
.
equals
(
"true"
))
{
log
.
info
(
"开始支付宝支付对账."
);
...
...
@@ -437,20 +437,4 @@ public class ReconciliationTask {
}
}
@Scheduled
(
cron
=
"0 20 15 24 2 ?"
)
public
void
aliPayDailyReconciliationTest
()
throws
AlipayApiException
,
IOException
{
// String billDate = DateUtils.convertDate(DateUtils.getBeforeDay(new Date(), 1), "yyyy-MM-dd");
// List<AliPayBillData> aliPayBillDataList = aliPayBillService.parseAliPayBillFile(aliPayBillService.downloadBillFile(billDate));
String
fileDir
=
"/home/quant_group/alipay-bill/20889319557053230156_20220223.csv"
;
File
[]
files
=
FileUtil
.
file
(
fileDir
).
listFiles
();
for
(
File
file:
files
)
{
log
.
info
(
"转换前文件名称:{}"
,
file
.
getName
());
FileUtil
.
convertCharset
(
file
,
Charset
.
forName
(
"gbk"
),
Charset
.
forName
(
"utf-8"
));
}
File
[]
files2
=
FileUtil
.
file
(
fileDir
).
listFiles
();
for
(
File
file:
files2
)
{
log
.
info
(
"转换后文件名称:{}"
,
file
.
getName
());
}
}
}
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