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
65f6e355
Commit
65f6e355
authored
Apr 08, 2020
by
yinyong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数据中心--资产负债表-借支单金额调整到其他应收款项中
parent
9e4313ea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
BalanceSheetService.java
...m/bailuntec/balancesheet/service/BalanceSheetService.java
+9
-8
No files found.
data-finance/finance-balance-sheet/src/main/java/com/bailuntec/balancesheet/service/BalanceSheetService.java
View file @
65f6e355
...
@@ -344,6 +344,7 @@ public class BalanceSheetService {
...
@@ -344,6 +344,7 @@ public class BalanceSheetService {
int
rows
=
5000
;
int
rows
=
5000
;
int
page
=
1
;
int
page
=
1
;
try
{
try
{
param
=
"?btime=2020-03-15&etime="
+
DateTimeUtil
.
dateToString
(
datePlusOne
,
DateTimeUtil
.
DATE_FORMAT
);
SemiPageResultDTO
responseDTO
=
JSONObject
.
parseObject
(
HttpUtil
.
httpGet
(
getSemiStockLogUrl
+
param
+
SemiPageResultDTO
responseDTO
=
JSONObject
.
parseObject
(
HttpUtil
.
httpGet
(
getSemiStockLogUrl
+
param
+
"&page="
+
page
+
"&rows="
+
rows
),
SemiPageResultDTO
.
class
);
"&page="
+
page
+
"&rows="
+
rows
),
SemiPageResultDTO
.
class
);
if
(
responseDTO
.
getSuccess
()
&&
responseDTO
.
getData
().
getTotalItems
()
>
0
){
if
(
responseDTO
.
getSuccess
()
&&
responseDTO
.
getData
().
getTotalItems
()
>
0
){
...
@@ -577,14 +578,10 @@ public class BalanceSheetService {
...
@@ -577,14 +578,10 @@ public class BalanceSheetService {
// 应付款项
// 应付款项
BigDecimal
accountsPayableSum
=
finishedAccountsPayableSum
.
add
(
semiAccountsPayableSum
).
add
(
logisticsAccountsPayableSum
);
BigDecimal
accountsPayableSum
=
finishedAccountsPayableSum
.
add
(
semiAccountsPayableSum
).
add
(
logisticsAccountsPayableSum
);
dcBalanceSheet
.
setAccountsPayable
(
accountsPayableSum
);
dcBalanceSheet
.
setAccountsPayable
(
accountsPayableSum
);
// 借支单未还金额
// 应收款项
BigDecimal
amountBorrowedSum
=
dcBalanceSheetMapper
.
getAmountBorrowed
(
date
);
if
(
amountBorrowedSum
==
null
)
amountBorrowedSum
=
BigDecimal
.
ZERO
;
dcBalanceSheet
.
setAmountBorrowed
(
amountBorrowedSum
);
// 应收款项(加借支单未还金额)
BigDecimal
accountsReceivableSum
=
dcSupplierTransactionMapper
.
getAccountsReceivable
(
date
);
BigDecimal
accountsReceivableSum
=
dcSupplierTransactionMapper
.
getAccountsReceivable
(
date
);
if
(
accountsReceivableSum
==
null
)
accountsReceivableSum
=
BigDecimal
.
ZERO
;
if
(
accountsReceivableSum
==
null
)
accountsReceivableSum
=
BigDecimal
.
ZERO
;
dcBalanceSheet
.
setAccountsReceivable
(
accountsReceivableSum
.
add
(
amountBorrowedSum
)
);
dcBalanceSheet
.
setAccountsReceivable
(
accountsReceivableSum
);
// 成品供应商预付款项
// 成品供应商预付款项
BigDecimal
finishedPrepaymentSum
=
dcSupplierTransactionMapper
.
getFinishedPrepaymentSum
(
date
);
BigDecimal
finishedPrepaymentSum
=
dcSupplierTransactionMapper
.
getFinishedPrepaymentSum
(
date
);
if
(
finishedPrepaymentSum
==
null
)
finishedPrepaymentSum
=
BigDecimal
.
ZERO
;
if
(
finishedPrepaymentSum
==
null
)
finishedPrepaymentSum
=
BigDecimal
.
ZERO
;
...
@@ -742,10 +739,14 @@ public class BalanceSheetService {
...
@@ -742,10 +739,14 @@ public class BalanceSheetService {
BigDecimal
shortBorrowBalanceSum
=
dcShortTermBorrowMapper
.
getShortTermBorrowBalanceSum
(
date
);
BigDecimal
shortBorrowBalanceSum
=
dcShortTermBorrowMapper
.
getShortTermBorrowBalanceSum
(
date
);
if
(
shortBorrowBalanceSum
==
null
)
shortBorrowBalanceSum
=
BigDecimal
.
ZERO
;
if
(
shortBorrowBalanceSum
==
null
)
shortBorrowBalanceSum
=
BigDecimal
.
ZERO
;
dcBalanceSheet
.
setShortTermBorrow
(
shortBorrowBalanceSum
);
dcBalanceSheet
.
setShortTermBorrow
(
shortBorrowBalanceSum
);
// 借支单未还金额
BigDecimal
amountBorrowedSum
=
dcBalanceSheetMapper
.
getAmountBorrowed
(
date
);
if
(
amountBorrowedSum
==
null
)
amountBorrowedSum
=
BigDecimal
.
ZERO
;
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
);
dcBalanceSheet
.
setOtherAccountsReceivable
(
otherAccountsReceivable
.
add
(
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
);
...
...
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