Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dc-java
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
dc-java
Commits
9c730b32
Commit
9c730b32
authored
Apr 09, 2020
by
yinyong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数据中心--资产负债表其他应收应付款原来数据来源不取
parent
619260fe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
BalanceSheetService.java
...m/bailuntec/balancesheet/service/BalanceSheetService.java
+12
-12
No files found.
data-finance/finance-balance-sheet/src/main/java/com/bailuntec/balancesheet/service/BalanceSheetService.java
View file @
9c730b32
...
@@ -637,16 +637,16 @@ public class BalanceSheetService {
...
@@ -637,16 +637,16 @@ public class BalanceSheetService {
if
(
amountBorrowedSum
==
null
)
amountBorrowedSum
=
BigDecimal
.
ZERO
;
if
(
amountBorrowedSum
==
null
)
amountBorrowedSum
=
BigDecimal
.
ZERO
;
dcBalanceSheet
.
setAmountBorrowed
(
amountBorrowedSum
);
dcBalanceSheet
.
setAmountBorrowed
(
amountBorrowedSum
);
// 其他应收款
// 其他应收款
BigDecimal
otherAccountsReceivable
=
dcOtherCostMapper
.
getOtherAccountsReceivableSum
(
date
);
// 其他应收款(加借支单未还金额)
/*
BigDecimal otherAccountsReceivable = dcOtherCostMapper.getOtherAccountsReceivableSum(date); // 其他应收款(加借支单未还金额)
if
(
otherAccountsReceivable
==
null
)
otherAccountsReceivable
=
BigDecimal
.
ZERO
;
if(otherAccountsReceivable == null) otherAccountsReceivable = BigDecimal.ZERO;
*/
dcBalanceSheet
.
setOtherAccountsReceivable
(
otherAccountsReceivable
.
add
(
amountBorrowedSum
)
.
add
(
otherAccountsReceivableImport
));
dcBalanceSheet
.
setOtherAccountsReceivable
(
amountBorrowedSum
.
add
(
otherAccountsReceivableImport
));
}
}
if
(
otherAccountsPayableImport
!=
null
)
{
if
(
otherAccountsPayableImport
!=
null
)
{
// 其他应付款
// 其他应付款
BigDecimal
otherAccountsPayable
=
dcOtherCostMapper
.
getOtherAccountsPayableSum
(
date
);
/*
BigDecimal otherAccountsPayable = dcOtherCostMapper.getOtherAccountsPayableSum(date);
if
(
otherAccountsPayable
==
null
)
otherAccountsPayable
=
BigDecimal
.
ZERO
;
if(otherAccountsPayable == null) otherAccountsPayable = BigDecimal.ZERO;
*/
dcBalanceSheet
.
setOtherAccountsPayable
(
otherAccountsPayable
.
add
(
otherAccountsPayableImport
)
);
dcBalanceSheet
.
setOtherAccountsPayable
(
otherAccountsPayable
Import
);
}
}
if
(
fixedAssetsImport
!=
null
)
{
if
(
fixedAssetsImport
!=
null
)
{
...
@@ -755,7 +755,7 @@ public class BalanceSheetService {
...
@@ -755,7 +755,7 @@ public class BalanceSheetService {
@Transactional
@Transactional
public
void
generateBalanceSheet
(
Integer
companyValue
,
String
companyName
,
Date
date
)
{
public
void
generateBalanceSheet
(
Integer
companyValue
,
String
companyName
,
Date
date
)
{
// 生成资产负债表
// 生成资产负债表
//
dcBalanceSheetMapper.insertBalanceSheet(companyValue, companyName, date);
dcBalanceSheetMapper
.
insertBalanceSheet
(
companyValue
,
companyName
,
date
);
DcBalanceSheet
dcBalanceSheet
=
new
DcBalanceSheet
();
DcBalanceSheet
dcBalanceSheet
=
new
DcBalanceSheet
();
// 银行账户余额汇总
// 银行账户余额汇总
...
@@ -781,12 +781,12 @@ public class BalanceSheetService {
...
@@ -781,12 +781,12 @@ public class BalanceSheetService {
if
(
amountBorrowedSum
==
null
)
amountBorrowedSum
=
BigDecimal
.
ZERO
;
if
(
amountBorrowedSum
==
null
)
amountBorrowedSum
=
BigDecimal
.
ZERO
;
dcBalanceSheet
.
setAmountBorrowed
(
amountBorrowedSum
);
dcBalanceSheet
.
setAmountBorrowed
(
amountBorrowedSum
);
// 其他应收款、其他应付款
// 其他应收款、其他应付款
BigDecimal
otherAccountsReceivable
=
dcOtherCostMapper
.
getOtherAccountsReceivableSum
(
date
);
// 其他应收款(加借支单未还金额)
/*
BigDecimal otherAccountsReceivable = dcOtherCostMapper.getOtherAccountsReceivableSum(date); // 其他应收款(加借支单未还金额)
if
(
otherAccountsReceivable
==
null
)
otherAccountsReceivable
=
BigDecimal
.
ZERO
;
if(otherAccountsReceivable == null) otherAccountsReceivable = BigDecimal.ZERO;
*/
dcBalanceSheet
.
setOtherAccountsReceivable
(
otherAccountsReceivable
.
add
(
amountBorrowedSum
)
);
dcBalanceSheet
.
setOtherAccountsReceivable
(
amountBorrowedSum
);
BigDecimal
otherAccountsPayable
=
dcOtherCostMapper
.
getOtherAccountsPayableSum
(
date
);
// 其他应付款
/*
BigDecimal otherAccountsPayable = dcOtherCostMapper.getOtherAccountsPayableSum(date); // 其他应付款
if(otherAccountsPayable == null) otherAccountsPayable = BigDecimal.ZERO;
if(otherAccountsPayable == null) otherAccountsPayable = BigDecimal.ZERO;
dcBalanceSheet
.
setOtherAccountsPayable
(
otherAccountsPayable
);
dcBalanceSheet.setOtherAccountsPayable(otherAccountsPayable);
*/
// 固定资产
// 固定资产
BigDecimal
fixedAssetsSum
=
dcFixedAssetsDetailMapper
.
getFixedAssetsSum
(
date
);
BigDecimal
fixedAssetsSum
=
dcFixedAssetsDetailMapper
.
getFixedAssetsSum
(
date
);
if
(
fixedAssetsSum
==
null
)
fixedAssetsSum
=
BigDecimal
.
ZERO
;
if
(
fixedAssetsSum
==
null
)
fixedAssetsSum
=
BigDecimal
.
ZERO
;
...
...
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