Commit 9c730b32 by yinyong

数据中心--资产负债表其他应收应付款原来数据来源不取

parent 619260fe
...@@ -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(otherAccountsPayableImport);
} }
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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment