Merge remote-tracking branch 'origin/master'
commit
dd127896e8
|
@ -2,6 +2,8 @@ package cn.palmte.work.bean;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 主要指标数据
|
* 主要指标数据
|
||||||
*/
|
*/
|
||||||
|
@ -16,56 +18,56 @@ public class PrimaryIndicatorBean {
|
||||||
/**
|
/**
|
||||||
* 收入--设备类
|
* 收入--设备类
|
||||||
*/
|
*/
|
||||||
private long incomeDevice;
|
private BigDecimal incomeDevice;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 收入--施工类
|
* 收入--施工类
|
||||||
*/
|
*/
|
||||||
private long incomeEngineer;
|
private BigDecimal incomeEngineer;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 收入--服务类
|
* 收入--服务类
|
||||||
*/
|
*/
|
||||||
private long incomeService;
|
private BigDecimal incomeService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 采购成本--设备类
|
* 采购成本--设备类
|
||||||
*/
|
*/
|
||||||
private long costPurchaseDevice;
|
private BigDecimal costPurchaseDevice;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 采购成本--施工类
|
* 采购成本--施工类
|
||||||
*/
|
*/
|
||||||
private long costPurchaseBuild;
|
private BigDecimal costPurchaseBuild;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 采购成本--服务类
|
* 采购成本--服务类
|
||||||
*/
|
*/
|
||||||
private long costPurchaseService;
|
private BigDecimal costPurchaseService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 采购成本--其他
|
* 采购成本--其他
|
||||||
*/
|
*/
|
||||||
private long costPurchaseOther;
|
private BigDecimal costPurchaseOther;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 成本--其他
|
* 成本--其他
|
||||||
*/
|
*/
|
||||||
private long costOtherOther;
|
private BigDecimal costOtherOther;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 成本--项目管理成本
|
* 成本--项目管理成本
|
||||||
*/
|
*/
|
||||||
private long costProjectManage;
|
private BigDecimal costProjectManage;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 财务费用--资金占用成本
|
* 财务费用--资金占用成本
|
||||||
*/
|
*/
|
||||||
private long costExpropriation;
|
private BigDecimal costExpropriation;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 公司管理费用
|
* 公司管理费用
|
||||||
*/
|
*/
|
||||||
private long costCompanyManage;
|
private BigDecimal costCompanyManage;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,12 +3,13 @@ package cn.palmte.work.model;
|
||||||
import org.springframework.data.jpa.repository.JpaRepository;
|
import org.springframework.data.jpa.repository.JpaRepository;
|
||||||
import org.springframework.data.jpa.repository.Query;
|
import org.springframework.data.jpa.repository.Query;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public interface ProjectBudgetCostManageRepository extends JpaRepository<ProjectBudgetCostManage,Integer> {
|
public interface ProjectBudgetCostManageRepository extends JpaRepository<ProjectBudgetCostManage,Integer> {
|
||||||
List<ProjectBudgetCostManage> findAllByProjectIdEquals(int id);
|
List<ProjectBudgetCostManage> findAllByProjectIdEquals(int id);
|
||||||
|
|
||||||
@Query(value = "select sum(cost_tax_exclude) from project_budget_cost_manage where type = ?", nativeQuery = true)
|
@Query(value = "select sum(cost_tax_exclude) from project_budget_cost_manage where type = ?", nativeQuery = true)
|
||||||
long costTaxExcludeSum(int type);
|
BigDecimal costTaxExcludeSum(int type);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,15 +3,16 @@ package cn.palmte.work.model;
|
||||||
import org.springframework.data.jpa.repository.JpaRepository;
|
import org.springframework.data.jpa.repository.JpaRepository;
|
||||||
import org.springframework.data.jpa.repository.Query;
|
import org.springframework.data.jpa.repository.Query;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public interface ProjectBudgetCostRepository extends JpaRepository<ProjectBudgetCost,Integer> {
|
public interface ProjectBudgetCostRepository extends JpaRepository<ProjectBudgetCost,Integer> {
|
||||||
List<ProjectBudgetCost> findAllByProjectIdEquals(int id);
|
List<ProjectBudgetCost> findAllByProjectIdEquals(int id);
|
||||||
|
|
||||||
@Query(value = "select sum(cost_tax_include) from project_budget_cost where type = ?", nativeQuery = true)
|
@Query(value = "select sum(cost_tax_include) from project_budget_cost where type = ?", nativeQuery = true)
|
||||||
long costTaxIncludeSum(int type);
|
BigDecimal costTaxIncludeSum(int type);
|
||||||
|
|
||||||
@Query(value = "select sum(cost_tax_exclude) from project_budget_cost where type = ?", nativeQuery = true)
|
@Query(value = "select sum(cost_tax_exclude) from project_budget_cost where type = ?", nativeQuery = true)
|
||||||
long costTaxExcludeSum(int type);
|
BigDecimal costTaxExcludeSum(int type);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,16 +3,17 @@ package cn.palmte.work.model;
|
||||||
import org.springframework.data.jpa.repository.JpaRepository;
|
import org.springframework.data.jpa.repository.JpaRepository;
|
||||||
import org.springframework.data.jpa.repository.Query;
|
import org.springframework.data.jpa.repository.Query;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public interface ProjectBudgetIncomeRepository extends JpaRepository<ProjectBudgetIncome,Integer> {
|
public interface ProjectBudgetIncomeRepository extends JpaRepository<ProjectBudgetIncome,Integer> {
|
||||||
List<ProjectBudgetIncome> findAllByProjectIdEquals(int id);
|
List<ProjectBudgetIncome> findAllByProjectIdEquals(int id);
|
||||||
|
|
||||||
@Query(value = "select sum(income_tax_include) from project_budget_income where type = ?", nativeQuery = true)
|
@Query(value = "select sum(income_tax_include) from project_budget_income where type = ?", nativeQuery = true)
|
||||||
long incomeTaxIncludeSum(int type);
|
BigDecimal incomeTaxIncludeSum(int type);
|
||||||
|
|
||||||
@Query(value = "select sum(income_tax_exclude) from project_budget_income where type = ?", nativeQuery = true)
|
@Query(value = "select sum(income_tax_exclude) from project_budget_income where type = ?", nativeQuery = true)
|
||||||
long incomeTaxExcludeSum(int type);
|
BigDecimal incomeTaxExcludeSum(int type);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,6 +3,7 @@ package cn.palmte.work.model;
|
||||||
import org.springframework.data.jpa.repository.JpaRepository;
|
import org.springframework.data.jpa.repository.JpaRepository;
|
||||||
import org.springframework.data.jpa.repository.Query;
|
import org.springframework.data.jpa.repository.Query;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -21,5 +22,5 @@ public interface ProjectSettleCashFlowRepository extends JpaRepository<ProjectSe
|
||||||
List<ProjectSettleCashFlow> findAllByTime(String time);
|
List<ProjectSettleCashFlow> findAllByTime(String time);
|
||||||
|
|
||||||
@Query(value = "select sum(amount) from project_settle_cash_flow where project_id = ? and type = ?", nativeQuery = true)
|
@Query(value = "select sum(amount) from project_settle_cash_flow where project_id = ? and type = ?", nativeQuery = true)
|
||||||
long costAmountSum(int projectId,int type);
|
BigDecimal costAmountSum(int projectId, int type);
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,6 +3,7 @@ package cn.palmte.work.model;
|
||||||
import org.springframework.data.jpa.repository.JpaRepository;
|
import org.springframework.data.jpa.repository.JpaRepository;
|
||||||
import org.springframework.data.jpa.repository.Query;
|
import org.springframework.data.jpa.repository.Query;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -17,7 +18,7 @@ public interface ProjectSettleCostManageRepository extends JpaRepository<Project
|
||||||
List<ProjectSettleCostManage> findAllByProjectIdBefore(int id, String time);
|
List<ProjectSettleCostManage> findAllByProjectIdBefore(int id, String time);
|
||||||
|
|
||||||
@Query(value = "select sum(cost_tax_exclude) from project_settle_cost_manage where project_id = ? and type = ?", nativeQuery = true)
|
@Query(value = "select sum(cost_tax_exclude) from project_settle_cost_manage where project_id = ? and type = ?", nativeQuery = true)
|
||||||
long costTaxExcludeSum(int projectId,int type);
|
BigDecimal costTaxExcludeSum(int projectId, int type);
|
||||||
|
|
||||||
List<ProjectSettleCostManage> findAllByProjectId(int id);
|
List<ProjectSettleCostManage> findAllByProjectId(int id);
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@ package cn.palmte.work.model;
|
||||||
import org.springframework.data.jpa.repository.JpaRepository;
|
import org.springframework.data.jpa.repository.JpaRepository;
|
||||||
import org.springframework.data.jpa.repository.Query;
|
import org.springframework.data.jpa.repository.Query;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -17,7 +18,7 @@ public interface ProjectSettleCostRepository extends JpaRepository<ProjectSettle
|
||||||
List<ProjectSettleCost> findAllByProjectIdBefore(int id, String time);
|
List<ProjectSettleCost> findAllByProjectIdBefore(int id, String time);
|
||||||
|
|
||||||
@Query(value = "select sum(cost_tax_exclude) from project_settle_cost where project_id = ? and type = ?", nativeQuery = true)
|
@Query(value = "select sum(cost_tax_exclude) from project_settle_cost where project_id = ? and type = ?", nativeQuery = true)
|
||||||
long costTaxExcludeSum(int projectId,int type);
|
BigDecimal costTaxExcludeSum(int projectId, int type);
|
||||||
|
|
||||||
List<ProjectSettleCost> findAllByProjectId(int id);
|
List<ProjectSettleCost> findAllByProjectId(int id);
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@ package cn.palmte.work.model;
|
||||||
import org.springframework.data.jpa.repository.JpaRepository;
|
import org.springframework.data.jpa.repository.JpaRepository;
|
||||||
import org.springframework.data.jpa.repository.Query;
|
import org.springframework.data.jpa.repository.Query;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -17,7 +18,7 @@ public interface ProjectSettleIncomeRepository extends JpaRepository<ProjectSett
|
||||||
List<ProjectSettleIncome> findAllByProjectIdBefore(int id, String time);
|
List<ProjectSettleIncome> findAllByProjectIdBefore(int id, String time);
|
||||||
|
|
||||||
@Query(value = "select sum(income_tax_exclude) from project_settle_income where project_id = ? and type = ?", nativeQuery = true)
|
@Query(value = "select sum(income_tax_exclude) from project_settle_income where project_id = ? and type = ?", nativeQuery = true)
|
||||||
long incomeTaxExcludeSum(int projectId,int type);
|
BigDecimal incomeTaxExcludeSum(int projectId, int type);
|
||||||
|
|
||||||
List<ProjectSettleIncome> findAllByProjectId(int id);
|
List<ProjectSettleIncome> findAllByProjectId(int id);
|
||||||
|
|
||||||
|
|
|
@ -408,65 +408,65 @@ public class ProjectFinalSevice {
|
||||||
|
|
||||||
public SettleBean getSettle(Project project) {
|
public SettleBean getSettle(Project project) {
|
||||||
SettleBean settleBean = new SettleBean();
|
SettleBean settleBean = new SettleBean();
|
||||||
long incomeDivice = projectSettleIncomeRepository.incomeTaxExcludeSum(project.getId(), ProjectSettleIncome.TYPE_DEVICE);
|
BigDecimal incomeDivice = projectSettleIncomeRepository.incomeTaxExcludeSum(project.getId(), ProjectSettleIncome.TYPE_DEVICE);
|
||||||
long incomeEngineer = projectSettleIncomeRepository.incomeTaxExcludeSum(project.getId(), ProjectSettleIncome.TYPE_ENGINEER);
|
BigDecimal incomeEngineer = projectSettleIncomeRepository.incomeTaxExcludeSum(project.getId(), ProjectSettleIncome.TYPE_ENGINEER);
|
||||||
long incomeService = projectSettleIncomeRepository.incomeTaxExcludeSum(project.getId(), ProjectSettleIncome.TYPE_SERVICE);
|
BigDecimal incomeService = projectSettleIncomeRepository.incomeTaxExcludeSum(project.getId(), ProjectSettleIncome.TYPE_SERVICE);
|
||||||
|
|
||||||
settleBean.setIncomeDevice(new BigDecimal(incomeDivice));
|
settleBean.setIncomeDevice(incomeDivice);
|
||||||
settleBean.setIncomeEngineer(new BigDecimal(incomeEngineer));
|
settleBean.setIncomeEngineer(incomeEngineer);
|
||||||
settleBean.setIncomeService(new BigDecimal(incomeService));
|
settleBean.setIncomeService(incomeService);
|
||||||
|
|
||||||
long costDevice = projectSettleCostRepository.costTaxExcludeSum(project.getId(), ProjectSettleCost.TYPE_DEVICE);
|
BigDecimal costDevice = projectSettleCostRepository.costTaxExcludeSum(project.getId(), ProjectSettleCost.TYPE_DEVICE);
|
||||||
long costBuilding = projectSettleCostRepository.costTaxExcludeSum(project.getId(), ProjectSettleCost.TYPE_BUILDING);
|
BigDecimal costBuilding = projectSettleCostRepository.costTaxExcludeSum(project.getId(), ProjectSettleCost.TYPE_BUILDING);
|
||||||
long costService = projectSettleCostRepository.costTaxExcludeSum(project.getId(), ProjectSettleCost.TYPE_SERVICE);
|
BigDecimal costService = projectSettleCostRepository.costTaxExcludeSum(project.getId(), ProjectSettleCost.TYPE_SERVICE);
|
||||||
long costOther = projectSettleCostRepository.costTaxExcludeSum(project.getId(), ProjectSettleCost.TYPE_OTHER);
|
BigDecimal costOther = projectSettleCostRepository.costTaxExcludeSum(project.getId(), ProjectSettleCost.TYPE_OTHER);
|
||||||
long costProjectManage = projectSettleCostRepository.costTaxExcludeSum(project.getId(), ProjectSettleCost.TYPE_PROJECT_MANAGE);
|
BigDecimal costProjectManage = projectSettleCostRepository.costTaxExcludeSum(project.getId(), ProjectSettleCost.TYPE_PROJECT_MANAGE);
|
||||||
long costOtherOther = projectSettleCostRepository.costTaxExcludeSum(project.getId(), ProjectSettleCost.TYPE_OTHER_OTHER);
|
BigDecimal costOtherOther = projectSettleCostRepository.costTaxExcludeSum(project.getId(), ProjectSettleCost.TYPE_OTHER_OTHER);
|
||||||
|
|
||||||
settleBean.setCostPurchaseDevice(new BigDecimal(costDevice));
|
settleBean.setCostPurchaseDevice(costDevice);
|
||||||
settleBean.setCostPurchaseBuild(new BigDecimal(costBuilding));
|
settleBean.setCostPurchaseBuild(costBuilding);
|
||||||
settleBean.setCostPurchaseService(new BigDecimal(costService));
|
settleBean.setCostPurchaseService(costService);
|
||||||
settleBean.setCostOther(new BigDecimal(costOther));
|
settleBean.setCostOther(costOther);
|
||||||
settleBean.setCostProjectManage(new BigDecimal(costProjectManage));
|
settleBean.setCostProjectManage(costProjectManage);
|
||||||
settleBean.setCostPurchaseOther(new BigDecimal(costOtherOther));
|
settleBean.setCostPurchaseOther(costOtherOther);
|
||||||
|
|
||||||
long costExpropriation = projectSettleCostManageRepository.costTaxExcludeSum(project.getId(), ProjectSettleCostManage.TYPE_EXPROPRIATION);
|
BigDecimal costExpropriation = projectSettleCostManageRepository.costTaxExcludeSum(project.getId(), ProjectSettleCostManage.TYPE_EXPROPRIATION);
|
||||||
long costCompanyMange = projectSettleCostManageRepository.costTaxExcludeSum(project.getId(), ProjectSettleCostManage.TYPE_COMPANY_MANAGE);
|
BigDecimal costCompanyMange = projectSettleCostManageRepository.costTaxExcludeSum(project.getId(), ProjectSettleCostManage.TYPE_COMPANY_MANAGE);
|
||||||
long costIncomeTax = projectSettleCostManageRepository.costTaxExcludeSum(project.getId(), ProjectSettleCostManage.TYPE_INCOME_TAX);
|
BigDecimal costIncomeTax = projectSettleCostManageRepository.costTaxExcludeSum(project.getId(), ProjectSettleCostManage.TYPE_INCOME_TAX);
|
||||||
|
|
||||||
settleBean.setCostExpropriation(new BigDecimal(costExpropriation));
|
settleBean.setCostExpropriation(costExpropriation);
|
||||||
settleBean.setCostCompanyManage(new BigDecimal(costCompanyMange));
|
settleBean.setCostCompanyManage(costCompanyMange);
|
||||||
settleBean.setCostIncomeTax(new BigDecimal(costIncomeTax));
|
settleBean.setCostIncomeTax(costIncomeTax);
|
||||||
|
|
||||||
long type1 = projectSettleCashFlowRepository.costAmountSum(project.getId(), ProjectSettleCashFlow.SALE_INCOME_CASH);
|
BigDecimal type1 = projectSettleCashFlowRepository.costAmountSum(project.getId(), ProjectSettleCashFlow.SALE_INCOME_CASH);
|
||||||
long type2 = projectSettleCashFlowRepository.costAmountSum(project.getId(), ProjectSettleCashFlow.TAX_RETURN);
|
BigDecimal type2 = projectSettleCashFlowRepository.costAmountSum(project.getId(), ProjectSettleCashFlow.TAX_RETURN);
|
||||||
long type3 = projectSettleCashFlowRepository.costAmountSum(project.getId(), ProjectSettleCashFlow.EARNEST_MONEY_INCOME);
|
BigDecimal type3 = projectSettleCashFlowRepository.costAmountSum(project.getId(), ProjectSettleCashFlow.EARNEST_MONEY_INCOME);
|
||||||
long type4 = projectSettleCashFlowRepository.costAmountSum(project.getId(), ProjectSettleCashFlow.PURCHASE_COST);
|
BigDecimal type4 = projectSettleCashFlowRepository.costAmountSum(project.getId(), ProjectSettleCashFlow.PURCHASE_COST);
|
||||||
long type5 = projectSettleCashFlowRepository.costAmountSum(project.getId(), ProjectSettleCashFlow.TAX_COST);
|
BigDecimal type5 = projectSettleCashFlowRepository.costAmountSum(project.getId(), ProjectSettleCashFlow.TAX_COST);
|
||||||
long type6 = projectSettleCashFlowRepository.costAmountSum(project.getId(), ProjectSettleCashFlow.EARNEST_MONEY_COST);
|
BigDecimal type6 = projectSettleCashFlowRepository.costAmountSum(project.getId(), ProjectSettleCashFlow.EARNEST_MONEY_COST);
|
||||||
long type7 = projectSettleCashFlowRepository.costAmountSum(project.getId(), ProjectSettleCashFlow.NET_CASH_FLOW);
|
BigDecimal type7 = projectSettleCashFlowRepository.costAmountSum(project.getId(), ProjectSettleCashFlow.NET_CASH_FLOW);
|
||||||
long type8 = projectSettleCashFlowRepository.costAmountSum(project.getId(), ProjectSettleCashFlow.CASH_INFLOW_FROM_INVESTING_ACTIVITIES);
|
BigDecimal type8 = projectSettleCashFlowRepository.costAmountSum(project.getId(), ProjectSettleCashFlow.CASH_INFLOW_FROM_INVESTING_ACTIVITIES);
|
||||||
long type9 = projectSettleCashFlowRepository.costAmountSum(project.getId(), ProjectSettleCashFlow.CASH_OUTFLOW_FROM_INVESTING_ACTIVITIES);
|
BigDecimal type9 = projectSettleCashFlowRepository.costAmountSum(project.getId(), ProjectSettleCashFlow.CASH_OUTFLOW_FROM_INVESTING_ACTIVITIES);
|
||||||
long type10 = projectSettleCashFlowRepository.costAmountSum(project.getId(), ProjectSettleCashFlow.NET_CASH_FROM_INVESTING_ACTIVITIES);
|
BigDecimal type10 = projectSettleCashFlowRepository.costAmountSum(project.getId(), ProjectSettleCashFlow.NET_CASH_FROM_INVESTING_ACTIVITIES);
|
||||||
long type11 = projectSettleCashFlowRepository.costAmountSum(project.getId(), ProjectSettleCashFlow.FINANCING_CAPITAL_INFLOW);
|
BigDecimal type11 = projectSettleCashFlowRepository.costAmountSum(project.getId(), ProjectSettleCashFlow.FINANCING_CAPITAL_INFLOW);
|
||||||
long type12 = projectSettleCashFlowRepository.costAmountSum(project.getId(), ProjectSettleCashFlow.FINANCING_CAPITAL_OUTFLOW);
|
BigDecimal type12 = projectSettleCashFlowRepository.costAmountSum(project.getId(), ProjectSettleCashFlow.FINANCING_CAPITAL_OUTFLOW);
|
||||||
long type13 = projectSettleCashFlowRepository.costAmountSum(project.getId(), ProjectSettleCashFlow.FINANCING_CAPITAL_CASHFLOW);
|
BigDecimal type13 = projectSettleCashFlowRepository.costAmountSum(project.getId(), ProjectSettleCashFlow.FINANCING_CAPITAL_CASHFLOW);
|
||||||
long type14 = projectSettleCashFlowRepository.costAmountSum(project.getId(), ProjectSettleCashFlow.NET_INCREASE_MONETARY_FUNDS);
|
BigDecimal type14 = projectSettleCashFlowRepository.costAmountSum(project.getId(), ProjectSettleCashFlow.NET_INCREASE_MONETARY_FUNDS);
|
||||||
|
|
||||||
settleBean.setSaleIncomeCash(new BigDecimal(type1));
|
settleBean.setSaleIncomeCash(type1);
|
||||||
settleBean.setTaxReturn(new BigDecimal(type2));
|
settleBean.setTaxReturn(type2);
|
||||||
settleBean.setEarnestMoneyIncome(new BigDecimal(type3));
|
settleBean.setEarnestMoneyIncome(type3);
|
||||||
settleBean.setPurchaseCost(new BigDecimal(type4));
|
settleBean.setPurchaseCost(type4);
|
||||||
settleBean.setTaxCost(new BigDecimal(type5));
|
settleBean.setTaxCost(type5);
|
||||||
settleBean.setEarnestMoneyCost(new BigDecimal(type6));
|
settleBean.setEarnestMoneyCost(type6);
|
||||||
settleBean.setNetCashFlow(new BigDecimal(type7));
|
settleBean.setNetCashFlow(type7);
|
||||||
settleBean.setCashInflowFromInvestingActivities(new BigDecimal(type8));
|
settleBean.setCashInflowFromInvestingActivities(type8);
|
||||||
settleBean.setCashOutflowFromInvestingActivities(new BigDecimal(type9));
|
settleBean.setCashOutflowFromInvestingActivities(type9);
|
||||||
settleBean.setNetCashFromInvestingActivities(new BigDecimal(type10));
|
settleBean.setNetCashFromInvestingActivities(type10);
|
||||||
settleBean.setFinancingCapitalInflow(new BigDecimal(type11));
|
settleBean.setFinancingCapitalInflow(type11);
|
||||||
settleBean.setFinancingCapitalOutflow(new BigDecimal(type12));
|
settleBean.setFinancingCapitalOutflow(type12);
|
||||||
settleBean.setFinancingCapitalCashflow(new BigDecimal(type13));
|
settleBean.setFinancingCapitalCashflow(type13);
|
||||||
settleBean.setNetIncreaseMonetaryFunds(new BigDecimal(type14));
|
settleBean.setNetIncreaseMonetaryFunds(type14);
|
||||||
return settleBean;
|
return settleBean;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,6 +5,7 @@ import cn.palmte.work.model.*;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
@ -30,21 +31,21 @@ public class StatisticsService {
|
||||||
PrimaryIndicatorBean include = new PrimaryIndicatorBean();
|
PrimaryIndicatorBean include = new PrimaryIndicatorBean();
|
||||||
include.setTitle("预算金额(含税)");
|
include.setTitle("预算金额(含税)");
|
||||||
//收入数据
|
//收入数据
|
||||||
long deviceIncomeTaxIncludeSum = projectBudgetIncomeRepository.incomeTaxIncludeSum(ProjectBudgetIncome.TYPE_DEVICE);
|
BigDecimal deviceIncomeTaxIncludeSum = projectBudgetIncomeRepository.incomeTaxIncludeSum(ProjectBudgetIncome.TYPE_DEVICE);
|
||||||
long engineerIncomeTaxIncludeSum = projectBudgetIncomeRepository.incomeTaxIncludeSum(ProjectBudgetIncome.TYPE_ENGINEER);
|
BigDecimal engineerIncomeTaxIncludeSum = projectBudgetIncomeRepository.incomeTaxIncludeSum(ProjectBudgetIncome.TYPE_ENGINEER);
|
||||||
long serviceIncomeTaxIncludeSum = projectBudgetIncomeRepository.incomeTaxIncludeSum(ProjectBudgetIncome.TYPE_SERVICE);
|
BigDecimal serviceIncomeTaxIncludeSum = projectBudgetIncomeRepository.incomeTaxIncludeSum(ProjectBudgetIncome.TYPE_SERVICE);
|
||||||
|
|
||||||
include.setIncomeDevice(deviceIncomeTaxIncludeSum);
|
include.setIncomeDevice(deviceIncomeTaxIncludeSum);
|
||||||
include.setIncomeEngineer(engineerIncomeTaxIncludeSum);
|
include.setIncomeEngineer(engineerIncomeTaxIncludeSum);
|
||||||
include.setIncomeService(serviceIncomeTaxIncludeSum);
|
include.setIncomeService(serviceIncomeTaxIncludeSum);
|
||||||
|
|
||||||
//成本
|
//成本
|
||||||
long deviceCostTaxIncludeSum = projectBudgetCostRepository.costTaxIncludeSum(ProjectBudgetCost.TYPE_DEVICE);
|
BigDecimal deviceCostTaxIncludeSum = projectBudgetCostRepository.costTaxIncludeSum(ProjectBudgetCost.TYPE_DEVICE);
|
||||||
long buildingCostTaxIncludeSum = projectBudgetCostRepository.costTaxIncludeSum(ProjectBudgetCost.TYPE_BUILDING);
|
BigDecimal buildingCostTaxIncludeSum = projectBudgetCostRepository.costTaxIncludeSum(ProjectBudgetCost.TYPE_BUILDING);
|
||||||
long serviceCostTaxIncludeSum = projectBudgetCostRepository.costTaxIncludeSum(ProjectBudgetCost.TYPE_SERVICE);
|
BigDecimal serviceCostTaxIncludeSum = projectBudgetCostRepository.costTaxIncludeSum(ProjectBudgetCost.TYPE_SERVICE);
|
||||||
long otherCostTaxIncludeSum = projectBudgetCostRepository.costTaxIncludeSum(ProjectBudgetCost.TYPE_OTHER);
|
BigDecimal otherCostTaxIncludeSum = projectBudgetCostRepository.costTaxIncludeSum(ProjectBudgetCost.TYPE_OTHER);
|
||||||
long projectManageCostTaxIncludeSum = projectBudgetCostRepository.costTaxIncludeSum(ProjectBudgetCost.TYPE_PROJECT_MANAGE);
|
BigDecimal projectManageCostTaxIncludeSum = projectBudgetCostRepository.costTaxIncludeSum(ProjectBudgetCost.TYPE_PROJECT_MANAGE);
|
||||||
long otherOtherCostTaxIncludeSum = projectBudgetCostRepository.costTaxIncludeSum(ProjectBudgetCost.TYPE_OTHER_OTHER);
|
BigDecimal otherOtherCostTaxIncludeSum = projectBudgetCostRepository.costTaxIncludeSum(ProjectBudgetCost.TYPE_OTHER_OTHER);
|
||||||
|
|
||||||
include.setCostPurchaseDevice(deviceCostTaxIncludeSum);
|
include.setCostPurchaseDevice(deviceCostTaxIncludeSum);
|
||||||
include.setCostPurchaseBuild(buildingCostTaxIncludeSum);
|
include.setCostPurchaseBuild(buildingCostTaxIncludeSum);
|
||||||
|
@ -58,21 +59,21 @@ public class StatisticsService {
|
||||||
PrimaryIndicatorBean exclude = new PrimaryIndicatorBean();
|
PrimaryIndicatorBean exclude = new PrimaryIndicatorBean();
|
||||||
exclude.setTitle("预算金额(不含税)");
|
exclude.setTitle("预算金额(不含税)");
|
||||||
//收入数据
|
//收入数据
|
||||||
long deviceIncomeTaxExcludeSum = projectBudgetIncomeRepository.incomeTaxExcludeSum(ProjectBudgetIncome.TYPE_DEVICE);
|
BigDecimal deviceIncomeTaxExcludeSum = projectBudgetIncomeRepository.incomeTaxExcludeSum(ProjectBudgetIncome.TYPE_DEVICE);
|
||||||
long engineerIncomeTaxExcludeSum = projectBudgetIncomeRepository.incomeTaxExcludeSum(ProjectBudgetIncome.TYPE_ENGINEER);
|
BigDecimal engineerIncomeTaxExcludeSum = projectBudgetIncomeRepository.incomeTaxExcludeSum(ProjectBudgetIncome.TYPE_ENGINEER);
|
||||||
long serviceIncomeTaxExcludeSum = projectBudgetIncomeRepository.incomeTaxExcludeSum(ProjectBudgetIncome.TYPE_SERVICE);
|
BigDecimal serviceIncomeTaxExcludeSum = projectBudgetIncomeRepository.incomeTaxExcludeSum(ProjectBudgetIncome.TYPE_SERVICE);
|
||||||
|
|
||||||
exclude.setIncomeDevice(deviceIncomeTaxExcludeSum);
|
exclude.setIncomeDevice(deviceIncomeTaxExcludeSum);
|
||||||
exclude.setIncomeEngineer(engineerIncomeTaxExcludeSum);
|
exclude.setIncomeEngineer(engineerIncomeTaxExcludeSum);
|
||||||
exclude.setIncomeService(serviceIncomeTaxExcludeSum);
|
exclude.setIncomeService(serviceIncomeTaxExcludeSum);
|
||||||
|
|
||||||
//成本
|
//成本
|
||||||
long deviceCostTaxExcludeSum = projectBudgetCostRepository.costTaxExcludeSum(ProjectBudgetCost.TYPE_DEVICE);
|
BigDecimal deviceCostTaxExcludeSum = projectBudgetCostRepository.costTaxExcludeSum(ProjectBudgetCost.TYPE_DEVICE);
|
||||||
long buildingCostTaxExcludeSum = projectBudgetCostRepository.costTaxExcludeSum(ProjectBudgetCost.TYPE_BUILDING);
|
BigDecimal buildingCostTaxExcludeSum = projectBudgetCostRepository.costTaxExcludeSum(ProjectBudgetCost.TYPE_BUILDING);
|
||||||
long serviceCostTaxExcludeSum = projectBudgetCostRepository.costTaxExcludeSum(ProjectBudgetCost.TYPE_SERVICE);
|
BigDecimal serviceCostTaxExcludeSum = projectBudgetCostRepository.costTaxExcludeSum(ProjectBudgetCost.TYPE_SERVICE);
|
||||||
long otherCostTaxExcludeSum = projectBudgetCostRepository.costTaxExcludeSum(ProjectBudgetCost.TYPE_OTHER);
|
BigDecimal otherCostTaxExcludeSum = projectBudgetCostRepository.costTaxExcludeSum(ProjectBudgetCost.TYPE_OTHER);
|
||||||
long projectManageCostTaxExcludeSum = projectBudgetCostRepository.costTaxExcludeSum(ProjectBudgetCost.TYPE_PROJECT_MANAGE);
|
BigDecimal projectManageCostTaxExcludeSum = projectBudgetCostRepository.costTaxExcludeSum(ProjectBudgetCost.TYPE_PROJECT_MANAGE);
|
||||||
long otherOtherCostTaxExcludeSum = projectBudgetCostRepository.costTaxExcludeSum(ProjectBudgetCost.TYPE_OTHER_OTHER);
|
BigDecimal otherOtherCostTaxExcludeSum = projectBudgetCostRepository.costTaxExcludeSum(ProjectBudgetCost.TYPE_OTHER_OTHER);
|
||||||
|
|
||||||
exclude.setCostPurchaseDevice(deviceCostTaxExcludeSum);
|
exclude.setCostPurchaseDevice(deviceCostTaxExcludeSum);
|
||||||
exclude.setCostPurchaseBuild(buildingCostTaxExcludeSum);
|
exclude.setCostPurchaseBuild(buildingCostTaxExcludeSum);
|
||||||
|
@ -82,12 +83,14 @@ public class StatisticsService {
|
||||||
exclude.setCostOtherOther(otherOtherCostTaxExcludeSum);
|
exclude.setCostOtherOther(otherOtherCostTaxExcludeSum);
|
||||||
|
|
||||||
//管理
|
//管理
|
||||||
long expropriationSum = projectBudgetCostManageRepository.costTaxExcludeSum(ProjectBudgetCostManage.TYPE_EXPROPRIATION);
|
BigDecimal expropriationSum = projectBudgetCostManageRepository.costTaxExcludeSum(ProjectBudgetCostManage.TYPE_EXPROPRIATION);
|
||||||
long companyManageSum = projectBudgetCostManageRepository.costTaxExcludeSum(ProjectBudgetCostManage.TYPE_COMPANY_MANAGE);
|
BigDecimal companyManageSum = projectBudgetCostManageRepository.costTaxExcludeSum(ProjectBudgetCostManage.TYPE_COMPANY_MANAGE);
|
||||||
|
|
||||||
exclude.setCostExpropriation(expropriationSum);
|
exclude.setCostExpropriation(expropriationSum);
|
||||||
exclude.setCostCompanyManage(companyManageSum);
|
exclude.setCostCompanyManage(companyManageSum);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
list.add(exclude);
|
list.add(exclude);
|
||||||
|
|
||||||
return list;
|
return list;
|
||||||
|
|
|
@ -336,7 +336,7 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td>合计</td>
|
<td>合计</td>
|
||||||
<td><input name="cashFluxBudgetTotal" type="number" readonly required title="此列累计"></td>
|
<td><input name="cashFluxBudgetTotal" type="number" readonly required title="此列累计"></td>
|
||||||
<td><input name="cashFluxSettleTotal" type="number" value="${Utils.format(settleBean.getCashFluxTotal(),'0')}" readonly required title="此列累计"></td>
|
<td><input name="cashFluxSettleTotal" type="number" value="${Utils.format(settleBean.getCashFlowTotal(),'0')}" readonly required title="此列累计"></td>
|
||||||
<td><input name="cashFluxFinalTotal" type="number" readonly required title="此列累计"></td>
|
<td><input name="cashFluxFinalTotal" type="number" readonly required title="此列累计"></td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
Loading…
Reference in New Issue