Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
bailuntec-datacenter
Overview
Overview
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
huluobin
bailuntec-datacenter
Commits
7cf9e9dc
Commit
7cf9e9dc
authored
Jul 26, 2021
by
liyanlin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
5692ca77
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
BalanceSheetJob.java
...heet/src/main/java/com/bailuntec/job/BalanceSheetJob.java
+6
-6
BalanceSheetService.java
...n/java/com/bailuntec/job/service/BalanceSheetService.java
+4
-0
No files found.
datacenter-job/datacenter-finance/finance-balance-sheet/src/main/java/com/bailuntec/job/BalanceSheetJob.java
View file @
7cf9e9dc
...
...
@@ -142,11 +142,11 @@ public class BalanceSheetJob {
@Scheduled
(
cron
=
"0 0 8 * * ?"
)
public
void
generateBalanceSheet
()
{
try
{
log
.
info
(
"每天
1
点 生成资产负债表 开始"
);
log
.
info
(
"每天
8
点 生成资产负债表 开始"
);
balanceSheetService
.
generateBalanceSheet
();
log
.
info
(
"每天
1
点 生成资产负债表 结束"
);
log
.
info
(
"每天
8
点 生成资产负债表 结束"
);
}
catch
(
Exception
ex
)
{
log
.
error
(
"每天
1
点 生成资产负债表 异常:"
,
ex
);
log
.
error
(
"每天
8
点 生成资产负债表 异常:"
,
ex
);
}
}
...
...
@@ -162,11 +162,11 @@ public class BalanceSheetJob {
@Scheduled
(
cron
=
"0 0 9 * * ?"
)
public
void
generateBalanceSheetNewResult
()
{
try
{
log
.
info
(
"每天
1
点 生成新资产负债结果表 开始"
);
log
.
info
(
"每天
9
点 生成新资产负债结果表 开始"
);
balanceSheetService
.
generateBalanceSheetNewResult
();
log
.
info
(
"每天
1
点 生成新资产负债结果表 结束"
);
log
.
info
(
"每天
9
点 生成新资产负债结果表 结束"
);
}
catch
(
Exception
ex
)
{
log
.
error
(
"每天
1
点 生成新资产负债结果表 异常:"
,
ex
);
log
.
error
(
"每天
9
点 生成新资产负债结果表 异常:"
,
ex
);
}
}
...
...
datacenter-job/datacenter-finance/finance-balance-sheet/src/main/java/com/bailuntec/job/service/BalanceSheetService.java
View file @
7cf9e9dc
package
com
.
bailuntec
.
job
.
service
;
import
com.alibaba.fastjson.JSON
;
import
com.bailuntec.api.bailuntec.cw.CwApi
;
import
com.bailuntec.api.bailuntec.cw.response.BankAccountBalanceDTO
;
import
com.bailuntec.api.bailuntec.cw.response.BorrowBalanceDTO
;
...
...
@@ -699,6 +700,9 @@ public class BalanceSheetService {
public
void
getSupplierTransaction
(
LocalDate
date
){
try
{
PurchaseResult
<
List
<
SupplierTransactionDTO
>>
result
=
purchaseApi
.
GetSupplierTransactionStatictis
(
date
,
null
,
null
,
"{}"
);
log
.
info
(
"取供应商往来数据:应付账款和预付账款"
);
log
.
info
(
date
.
toString
());
log
.
info
(
JSON
.
toJSONString
(
result
));
if
(
result
.
getIsSuccessed
()
&&
result
.
getData
().
size
()
>
0
)
{
dcSupplierTransactionMapper
.
insertOrUpdateSupplierTransaction
(
result
.
getData
());
updateSuppliserTransactionOfBalanceSheet
(
date
);
...
...
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