作者 wwmin

修改基金

@@ -1348,7 +1348,7 @@ public class ProjectServiceImpl implements ProjectService { @@ -1348,7 +1348,7 @@ public class ProjectServiceImpl implements ProjectService {
1348 * 多联机中央空调 装机容量 1348 * 多联机中央空调 装机容量
1349 * 供冷面积*设计冷负荷/多联机中央空调制冷能效比*供冷比例 1349 * 供冷面积*设计冷负荷/多联机中央空调制冷能效比*供冷比例
1350 */ 1350 */
1351 - double a4 = (coldArea * coldLoadAll * synthesizeNo26ServiceById.getNo101() * Double.parseDouble(String.valueOf(jsonObjectCold.get("coldD"))) / 100) / 1000; 1351 + double a4 = (coldArea * coldLoadAll * synthesizeNo26ServiceById.getNo101() * Double.parseDouble(String.valueOf(jsonObjectCold.get("coldA"))) / 100) / 1000;
1352 if (a3 > a4) { 1352 if (a3 > a4) {
1353 MultiLineCentralAirConditioningInstalledCapacity = a3; 1353 MultiLineCentralAirConditioningInstalledCapacity = a3;
1354 } else { 1354 } else {
@@ -1730,16 +1730,12 @@ public class ProjectServiceImpl implements ProjectService { @@ -1730,16 +1730,12 @@ public class ProjectServiceImpl implements ProjectService {
1730 synthesize_no_3_6.setNo47(num1); 1730 synthesize_no_3_6.setNo47(num1);
1731 no_3_1_1_1Dto.setInvestmentEstimation(format.apply(new BigDecimal(num1))); 1731 no_3_1_1_1Dto.setInvestmentEstimation(format.apply(new BigDecimal(num1)));
1732 no_3_1_1_1Dto.setProjectEarnings(format.apply(BigDecimal.valueOf((totalAnnualTotalHotWaterRequirement * synthesize_no_2_5.getHotWaterSellingPrice()) / 10000 * 0.4))); 1732 no_3_1_1_1Dto.setProjectEarnings(format.apply(BigDecimal.valueOf((totalAnnualTotalHotWaterRequirement * synthesize_no_2_5.getHotWaterSellingPrice()) / 10000 * 0.4)));
1733 -// double n319 = annualTotalHotWaterRequirement * commitmentRatio / 0.9 / synthesizeNo26ServiceById.getNo53() * (8 * end + 2 * tall) / 10 * Double.parseDouble(String.valueOf(jsonObject.get("hotWaterA"))) / 100 / 10000;  
1734 -// double n320 = (totalAnnualTotalHotWaterRequirement * synthesizeNo26ServiceById.getNo129() * Double.parseDouble(String.valueOf(jsonObject.get("hotWaterA"))) / 100 + airSourceHeatPumpCapacity * synthesizeNo26ServiceById.getNo59()) / 10000;  
1735 //空气源热泵(热水型)电费 1733 //空气源热泵(热水型)电费
1736 double n319 = annualTotalHotWaterRequirement * 0.4 / 0.9 / synthesizeNo26ServiceById.getNo53() * (8 * end + 2 * tall) / 10 * Double.parseDouble(String.valueOf(jsonObject.get("hotWaterA"))) / 100 / 10000;/*供热水比例*/ 1734 double n319 = annualTotalHotWaterRequirement * 0.4 / 0.9 / synthesizeNo26ServiceById.getNo53() * (8 * end + 2 * tall) / 10 * Double.parseDouble(String.valueOf(jsonObject.get("hotWaterA"))) / 100 / 10000;/*供热水比例*/
1737 //空气源热泵(热水行) 自来水费 1735 //空气源热泵(热水行) 自来水费
1738 double n320 = totalAnnualTotalHotWaterRequirement * synthesizeNo26ServiceById.getNo129() * Double.parseDouble(String.valueOf(jsonObject.get("hotWaterA"))) / 100 * 0.4 / 10000; 1736 double n320 = totalAnnualTotalHotWaterRequirement * synthesizeNo26ServiceById.getNo129() * Double.parseDouble(String.valueOf(jsonObject.get("hotWaterA"))) / 100 * 0.4 / 10000;
1739 //空气源热泵(热水型) 运维费 1737 //空气源热泵(热水型) 运维费
1740 - double n321 = airSourceHeatPumpCapacity * synthesizeNo26ServiceById.getNo59();  
1741 - //double n319 = 0.0;  
1742 - 1738 + double n321 = airSourceHeatPumpCapacity * synthesizeNo26ServiceById.getNo59() / 10000;
1743 1739
1744 Double num3 = n319 + n320 + n321; 1740 Double num3 = n319 + n320 + n321;
1745 no_3_1_1_1Dto.setRemark(format.apply(new BigDecimal(num3))); 1741 no_3_1_1_1Dto.setRemark(format.apply(new BigDecimal(num3)));
@@ -2155,8 +2151,6 @@ public class ProjectServiceImpl implements ProjectService { @@ -2155,8 +2151,6 @@ public class ProjectServiceImpl implements ProjectService {
2155 currentYearFundData.setAnnualProfit(0.0); 2151 currentYearFundData.setAnnualProfit(0.0);
2156 double zeroYearDeductionAddedTax = 0.0; 2152 double zeroYearDeductionAddedTax = 0.0;
2157 for (int i = 0; i <= yearLength; i++) { 2153 for (int i = 0; i <= yearLength; i++) {
2158 -  
2159 -  
2160 //总 电费+ 燃气水费 + 运维费 2154 //总 电费+ 燃气水费 + 运维费
2161 double annualTotalTransportationCost = annualElectricFee + annualFuelGasAndWaterFee + annualOperationFee; 2155 double annualTotalTransportationCost = annualElectricFee + annualFuelGasAndWaterFee + annualOperationFee;
2162 2156
@@ -2240,16 +2234,22 @@ public class ProjectServiceImpl implements ProjectService { @@ -2240,16 +2234,22 @@ public class ProjectServiceImpl implements ProjectService {
2240 else ownAddedTax = annualProfit * 0.25; 2234 else ownAddedTax = annualProfit * 0.25;
2241 } 2235 }
2242 //endregion 2236 //endregion
  2237 + //TODO: 当利润小于0时 所得税为0 , 后续仍需处理
  2238 +// if (annualProfit < 0) {
  2239 +// ownAddedTax = 0;
  2240 +// }
2243 //净现金流 2241 //净现金流
2244 double NCF = annualIncome - annualOutcome - ownAddedTax; 2242 double NCF = annualIncome - annualOutcome - ownAddedTax;
2245 if (i == 0) { 2243 if (i == 0) {
2246 // double r = 1 / Math.pow((1 + synthesize_no_2_6.getNo63()), 1);//第0年的折现因子 2244 // double r = 1 / Math.pow((1 + synthesize_no_2_6.getNo63()), 1);//第0年的折现因子
2247 - NCF = -totalInvestment ; 2245 + NCF = -totalInvestment;
2248 } 2246 }
2249 list.add(NCF); 2247 list.add(NCF);
2250 } 2248 }
2251 2249
2252 //region 2250 //region
  2251 + //建设期
  2252 + double buildingYear = synthesize_no_2_6.getNo61();
2253 for (int i = 0; i < list.size(); i++) { 2253 for (int i = 0; i < list.size(); i++) {
2254 npvData = new NpvData(); 2254 npvData = new NpvData();
2255 npvData.setYear(yearLength); 2255 npvData.setYear(yearLength);
@@ -2262,21 +2262,9 @@ public class ProjectServiceImpl implements ProjectService { @@ -2262,21 +2262,9 @@ public class ProjectServiceImpl implements ProjectService {
2262 * 净现值(NPV) 2262 * 净现值(NPV)
2263 */ 2263 */
2264 double sum = 0; 2264 double sum = 0;
2265 - int yearIndex = 0;  
2266 - List<Double> sumList = new ArrayList<>();  
2267 for (NpvData data : npvDatas) { 2265 for (NpvData data : npvDatas) {
2268 -// if (yearIndex == 0) {  
2269 -// sum = data.getRmb();  
2270 -// sumList.add(sum);  
2271 -// } else {  
2272 -// double d = formatDouble1(data.getRmb()) * formatDouble1(data.getY());  
2273 -// sumList.add(d);  
2274 -// sum += d;  
2275 -// }  
2276 double d = formatDouble1(data.getRmb()) * formatDouble1(data.getY()); 2266 double d = formatDouble1(data.getRmb()) * formatDouble1(data.getY());
2277 - sumList.add(d);  
2278 sum += d; 2267 sum += d;
2279 - yearIndex++;  
2280 } 2268 }
2281 map.put("num1", df.format(sum)); 2269 map.put("num1", df.format(sum));
2282 /** 2270 /**