fourcal/src/main/java/cn/palmte/work/bean/SettleBean.java

544 lines
16 KiB
Java
Raw Normal View History

2021-11-17 01:37:02 +00:00
package cn.palmte.work.bean;
import java.math.BigDecimal;
public class SettleBean {
//========================收入表================================
/**
*
*/
private BigDecimal incomeDevice;
/**
*
*/
private BigDecimal incomeEngineer;
/**
*
*/
private BigDecimal incomeService;
2021-11-17 09:58:09 +00:00
/**
*
*
* @return
*/
public BigDecimal getIncomeTotal() {
BigDecimal incomeDevice = getIncomeDevice();
BigDecimal incomeEngineer = getIncomeEngineer();
BigDecimal incomeService = getIncomeService();
if (null == incomeDevice || null == incomeEngineer || null == incomeService) {
return new BigDecimal(0);
}
return incomeDevice.add(incomeEngineer).add(incomeService);
}
2021-11-17 01:37:02 +00:00
//========================成本表================================
/**
*
*/
private BigDecimal costPurchaseDevice;
/**
*
*/
private BigDecimal costPurchaseBuild;
/**
*
*/
private BigDecimal costPurchaseService;
/**
*
*/
private BigDecimal costPurchaseOther;
/**
*
*/
private BigDecimal costProjectManage;
/**
*
*/
private BigDecimal costOther;
2021-11-17 09:58:09 +00:00
/**
*
*
* @return
*/
public BigDecimal getCostTotal() {
BigDecimal costPurchaseDevice = getCostPurchaseDevice();
BigDecimal costPurchaseBuild = getCostPurchaseBuild();
BigDecimal costPurchaseService = getCostPurchaseService();
BigDecimal costPurchaseOther = getCostPurchaseOther();
BigDecimal costProjectManage = getCostProjectManage();
BigDecimal costOther = getCostOther();
if (null == costPurchaseDevice || null == costPurchaseBuild || null == costPurchaseService
|| null == costPurchaseOther || null == costProjectManage || null == costOther) {
return new BigDecimal(0);
}
return costPurchaseDevice.add(costPurchaseBuild).add(costPurchaseService)
.add(costPurchaseOther).add(costProjectManage).add(costOther);
}
2021-11-18 07:28:21 +00:00
/**
*
*
* @return
*/
public BigDecimal getCostTotal2() {
BigDecimal costPurchaseDevice = getCostPurchaseDevice();
BigDecimal costPurchaseBuild = getCostPurchaseBuild();
BigDecimal costPurchaseService = getCostPurchaseService();
BigDecimal costPurchaseOther = getCostPurchaseOther();
if (null == costPurchaseDevice || null == costPurchaseBuild || null == costPurchaseService
|| null == costPurchaseOther) {
return new BigDecimal(0);
}
return costPurchaseDevice.add(costPurchaseBuild).add(costPurchaseService)
.add(costPurchaseOther);
}
2021-11-17 01:37:02 +00:00
//========================管理表================================
/**
*
*/
private BigDecimal costExpropriation;
/**
*
*/
private BigDecimal costCompanyManage;
/**
*
*/
private BigDecimal costIncomeTax;
2021-11-17 09:58:09 +00:00
public BigDecimal getCostManageTotal() {
BigDecimal costExpropriation = getCostExpropriation();
BigDecimal costCompanyManage = getCostCompanyManage();
BigDecimal costIncomeTax = getCostIncomeTax();
if (null == costExpropriation || null == costCompanyManage || null == costIncomeTax) {
return new BigDecimal(0);
}
return costExpropriation.add(costCompanyManage).add(costIncomeTax);
}
2021-11-17 01:37:02 +00:00
//========================利润率计算表================================
/**
*
*/
private BigDecimal grossProfit;
/**
*
*/
private BigDecimal grossProfitProfitMargin;
/**
*
*/
private BigDecimal contributionProfit;
/**
*
*/
private BigDecimal contributionProfitProfitMargin;
/**
*
*/
private BigDecimal netProfit;
/**
*
*/
private BigDecimal netProfitProfitMargin;
//========================结算现金流量表================================
/**
* a
* */
private BigDecimal saleIncomeCash;
/**
* b
* */
private BigDecimal taxReturn;
/**
* c
*/
private BigDecimal earnestMoneyIncome;
/**
* d+
*/
private BigDecimal purchaseCost;
/**
* e
*/
private BigDecimal taxCost;
/**
*f
*/
private BigDecimal earnestMoneyCost;
/**
* g
* g=a+c+b-d-f-e
*/
private BigDecimal netCashFlow;
/**
* h
*/
private BigDecimal cashInflowFromInvestingActivities;
/**
* i
*/
private BigDecimal cashOutflowFromInvestingActivities;
/**
* j
*/
private BigDecimal netCashFromInvestingActivities;
/**
* k
*/
private BigDecimal financingCapitalInflow;
/**
* l
*/
private BigDecimal financingCapitalOutflow;
/**
*m
* m=k-l
*/
private BigDecimal financingCapitalCashflow;
/**
* n
* n=g+j+m
*/
private BigDecimal netIncreaseMonetaryFunds;
2021-11-17 09:58:09 +00:00
/**
*
* @return
*/
2021-11-18 01:39:08 +00:00
public BigDecimal getCashFlowTotal() {
2021-11-17 09:58:09 +00:00
BigDecimal saleIncomeCash = getSaleIncomeCash();
BigDecimal taxReturn = getTaxReturn();
BigDecimal earnestMoneyIncome = getEarnestMoneyIncome();
BigDecimal purchaseCost = getPurchaseCost();
BigDecimal taxCost = getTaxCost();
BigDecimal earnestMoneyCost = getEarnestMoneyCost();
BigDecimal netCashFlow = getNetCashFlow();
BigDecimal cashInflowFromInvestingActivities = getCashInflowFromInvestingActivities();
BigDecimal cashOutflowFromInvestingActivities = getCashOutflowFromInvestingActivities();
BigDecimal netCashFromInvestingActivities = getNetCashFromInvestingActivities();
BigDecimal financingCapitalInflow = getFinancingCapitalInflow();
BigDecimal financingCapitalOutflow = getFinancingCapitalOutflow();
BigDecimal financingCapitalCashflow = getFinancingCapitalCashflow();
BigDecimal netIncreaseMonetaryFunds = getNetIncreaseMonetaryFunds();
if (null == saleIncomeCash || null == taxReturn || null == earnestMoneyIncome || null == purchaseCost || null == taxCost
|| null == earnestMoneyCost || null == netCashFlow || null == cashInflowFromInvestingActivities ||
null == cashOutflowFromInvestingActivities || null == netCashFromInvestingActivities ||
null == financingCapitalInflow || null == financingCapitalOutflow || null == financingCapitalCashflow || null == netIncreaseMonetaryFunds) {
return new BigDecimal(0);
}
return saleIncomeCash.add(taxReturn).add(earnestMoneyIncome).add(purchaseCost).add(taxCost).add(earnestMoneyCost)
.add(netCashFlow).add(cashInflowFromInvestingActivities).add(cashOutflowFromInvestingActivities).add(netCashFromInvestingActivities)
.add(financingCapitalInflow).add(financingCapitalOutflow).add(financingCapitalCashflow).add(netIncreaseMonetaryFunds);
}
2021-11-18 01:39:08 +00:00
private String projectName;
2021-11-18 07:28:21 +00:00
protected BigDecimal handleSpecial(BigDecimal src) {
return null == src ? new BigDecimal(0) : src;
}
2021-11-17 01:37:02 +00:00
public BigDecimal getIncomeDevice() {
2021-11-18 07:28:21 +00:00
return handleSpecial(incomeDevice);
2021-11-17 01:37:02 +00:00
}
public void setIncomeDevice(BigDecimal incomeDevice) {
this.incomeDevice = incomeDevice;
}
public BigDecimal getIncomeEngineer() {
2021-11-18 07:28:21 +00:00
return handleSpecial(incomeEngineer);
2021-11-17 01:37:02 +00:00
}
public void setIncomeEngineer(BigDecimal incomeEngineer) {
this.incomeEngineer = incomeEngineer;
}
public BigDecimal getIncomeService() {
2021-11-18 07:28:21 +00:00
return handleSpecial(incomeService);
2021-11-17 01:37:02 +00:00
}
public void setIncomeService(BigDecimal incomeService) {
this.incomeService = incomeService;
}
public BigDecimal getCostPurchaseDevice() {
2021-11-18 07:28:21 +00:00
return handleSpecial(costPurchaseDevice);
2021-11-17 01:37:02 +00:00
}
public void setCostPurchaseDevice(BigDecimal costPurchaseDevice) {
this.costPurchaseDevice = costPurchaseDevice;
}
public BigDecimal getCostPurchaseBuild() {
2021-11-18 07:28:21 +00:00
return handleSpecial(costPurchaseBuild);
2021-11-17 01:37:02 +00:00
}
public void setCostPurchaseBuild(BigDecimal costPurchaseBuild) {
this.costPurchaseBuild = costPurchaseBuild;
}
public BigDecimal getCostPurchaseService() {
2021-11-18 07:28:21 +00:00
return handleSpecial(costPurchaseService);
2021-11-17 01:37:02 +00:00
}
public void setCostPurchaseService(BigDecimal costPurchaseService) {
this.costPurchaseService = costPurchaseService;
}
public BigDecimal getCostPurchaseOther() {
2021-11-18 07:28:21 +00:00
return handleSpecial(costPurchaseOther);
2021-11-17 01:37:02 +00:00
}
public void setCostPurchaseOther(BigDecimal costPurchaseOther) {
this.costPurchaseOther = costPurchaseOther;
}
public BigDecimal getCostProjectManage() {
2021-11-18 07:28:21 +00:00
return handleSpecial(costProjectManage);
2021-11-17 01:37:02 +00:00
}
public void setCostProjectManage(BigDecimal costProjectManage) {
this.costProjectManage = costProjectManage;
}
public BigDecimal getCostOther() {
2022-01-13 08:35:29 +00:00
if (costOther == null) {
return BigDecimal.ZERO;
}
2021-11-18 07:28:21 +00:00
return handleSpecial(costOther);
2021-11-17 01:37:02 +00:00
}
public void setCostOther(BigDecimal costOther) {
this.costOther = costOther;
}
public BigDecimal getCostExpropriation() {
2021-11-18 07:28:21 +00:00
return handleSpecial(costExpropriation);
2021-11-17 01:37:02 +00:00
}
public void setCostExpropriation(BigDecimal costExpropriation) {
this.costExpropriation = costExpropriation;
}
public BigDecimal getCostCompanyManage() {
2021-11-18 07:28:21 +00:00
return handleSpecial(costCompanyManage);
2021-11-17 01:37:02 +00:00
}
public void setCostCompanyManage(BigDecimal costCompanyManage) {
this.costCompanyManage = costCompanyManage;
}
public BigDecimal getCostIncomeTax() {
2021-11-18 07:28:21 +00:00
return handleSpecial(costIncomeTax);
2021-11-17 01:37:02 +00:00
}
public void setCostIncomeTax(BigDecimal costIncomeTax) {
this.costIncomeTax = costIncomeTax;
}
public BigDecimal getGrossProfit() {
2021-11-18 07:28:21 +00:00
return handleSpecial(grossProfit);
2021-11-17 01:37:02 +00:00
}
public void setGrossProfit(BigDecimal grossProfit) {
this.grossProfit = grossProfit;
}
public BigDecimal getGrossProfitProfitMargin() {
2021-11-18 07:28:21 +00:00
return handleSpecial(grossProfitProfitMargin);
2021-11-17 01:37:02 +00:00
}
public void setGrossProfitProfitMargin(BigDecimal grossProfitProfitMargin) {
this.grossProfitProfitMargin = grossProfitProfitMargin;
}
public BigDecimal getContributionProfit() {
2021-11-18 07:28:21 +00:00
return handleSpecial(contributionProfit);
2021-11-17 01:37:02 +00:00
}
public void setContributionProfit(BigDecimal contributionProfit) {
this.contributionProfit = contributionProfit;
}
public BigDecimal getContributionProfitProfitMargin() {
2021-11-18 07:28:21 +00:00
return handleSpecial(contributionProfitProfitMargin);
2021-11-17 01:37:02 +00:00
}
public void setContributionProfitProfitMargin(BigDecimal contributionProfitProfitMargin) {
this.contributionProfitProfitMargin = contributionProfitProfitMargin;
}
public BigDecimal getNetProfit() {
2021-11-18 07:28:21 +00:00
return handleSpecial(netProfit);
2021-11-17 01:37:02 +00:00
}
public void setNetProfit(BigDecimal netProfit) {
this.netProfit = netProfit;
}
public BigDecimal getNetProfitProfitMargin() {
2021-11-18 07:28:21 +00:00
return handleSpecial(netProfitProfitMargin);
2021-11-17 01:37:02 +00:00
}
public void setNetProfitProfitMargin(BigDecimal netProfitProfitMargin) {
this.netProfitProfitMargin = netProfitProfitMargin;
}
public BigDecimal getSaleIncomeCash() {
2021-11-18 07:28:21 +00:00
return handleSpecial(saleIncomeCash);
2021-11-17 01:37:02 +00:00
}
public void setSaleIncomeCash(BigDecimal saleIncomeCash) {
this.saleIncomeCash = saleIncomeCash;
}
public BigDecimal getTaxReturn() {
2021-11-18 07:28:21 +00:00
return handleSpecial(taxReturn);
2021-11-17 01:37:02 +00:00
}
public void setTaxReturn(BigDecimal taxReturn) {
this.taxReturn = taxReturn;
}
public BigDecimal getEarnestMoneyIncome() {
2021-11-18 07:28:21 +00:00
return handleSpecial(earnestMoneyIncome);
2021-11-17 01:37:02 +00:00
}
public void setEarnestMoneyIncome(BigDecimal earnestMoneyIncome) {
this.earnestMoneyIncome = earnestMoneyIncome;
}
public BigDecimal getPurchaseCost() {
2021-11-18 07:28:21 +00:00
return handleSpecial(purchaseCost);
2021-11-17 01:37:02 +00:00
}
public void setPurchaseCost(BigDecimal purchaseCost) {
this.purchaseCost = purchaseCost;
}
public BigDecimal getTaxCost() {
2021-11-18 07:28:21 +00:00
return handleSpecial(taxCost);
2021-11-17 01:37:02 +00:00
}
public void setTaxCost(BigDecimal taxCost) {
this.taxCost = taxCost;
}
public BigDecimal getEarnestMoneyCost() {
2021-11-18 07:28:21 +00:00
return handleSpecial(earnestMoneyCost);
2021-11-17 01:37:02 +00:00
}
public void setEarnestMoneyCost(BigDecimal earnestMoneyCost) {
this.earnestMoneyCost = earnestMoneyCost;
}
public BigDecimal getCashInflowFromInvestingActivities() {
2021-11-18 07:28:21 +00:00
return handleSpecial(cashInflowFromInvestingActivities);
2021-11-17 01:37:02 +00:00
}
public void setCashInflowFromInvestingActivities(BigDecimal cashInflowFromInvestingActivities) {
this.cashInflowFromInvestingActivities = cashInflowFromInvestingActivities;
}
public BigDecimal getCashOutflowFromInvestingActivities() {
2021-11-18 07:28:21 +00:00
return handleSpecial(cashOutflowFromInvestingActivities);
2021-11-17 01:37:02 +00:00
}
public void setCashOutflowFromInvestingActivities(BigDecimal cashOutflowFromInvestingActivities) {
this.cashOutflowFromInvestingActivities = cashOutflowFromInvestingActivities;
}
public BigDecimal getNetCashFromInvestingActivities() {
2021-11-18 07:28:21 +00:00
return handleSpecial(netCashFromInvestingActivities);
2021-11-17 01:37:02 +00:00
}
public void setNetCashFromInvestingActivities(BigDecimal netCashFromInvestingActivities) {
this.netCashFromInvestingActivities = netCashFromInvestingActivities;
}
public BigDecimal getFinancingCapitalInflow() {
2021-11-18 07:28:21 +00:00
return handleSpecial(financingCapitalInflow);
2021-11-17 01:37:02 +00:00
}
public void setFinancingCapitalInflow(BigDecimal financingCapitalInflow) {
this.financingCapitalInflow = financingCapitalInflow;
}
public BigDecimal getFinancingCapitalOutflow() {
2021-11-18 07:28:21 +00:00
return handleSpecial(financingCapitalOutflow);
2021-11-17 01:37:02 +00:00
}
public void setFinancingCapitalOutflow(BigDecimal financingCapitalOutflow) {
this.financingCapitalOutflow = financingCapitalOutflow;
}
public BigDecimal getFinancingCapitalCashflow() {
2021-11-18 07:28:21 +00:00
return handleSpecial(financingCapitalCashflow);
2021-11-17 01:37:02 +00:00
}
public void setFinancingCapitalCashflow(BigDecimal financingCapitalCashflow) {
this.financingCapitalCashflow = financingCapitalCashflow;
}
public BigDecimal getNetIncreaseMonetaryFunds() {
2021-11-18 07:28:21 +00:00
return handleSpecial(netIncreaseMonetaryFunds);
2021-11-17 01:37:02 +00:00
}
public void setNetIncreaseMonetaryFunds(BigDecimal netIncreaseMonetaryFunds) {
this.netIncreaseMonetaryFunds = netIncreaseMonetaryFunds;
}
public BigDecimal getNetCashFlow() {
2021-11-18 07:28:21 +00:00
return handleSpecial(netCashFlow);
2021-11-17 01:37:02 +00:00
}
public void setNetCashFlow(BigDecimal netCashFlow) {
this.netCashFlow = netCashFlow;
}
2021-11-18 01:39:08 +00:00
public String getProjectName() {
return projectName;
}
public void setProjectName(String projectName) {
this.projectName = projectName;
}
2021-11-17 01:37:02 +00:00
}