|
@@ -50,10 +50,7 @@ import java.math.BigDecimal;
|
|
|
import java.math.RoundingMode;
|
|
|
import java.sql.Array;
|
|
|
import java.sql.Timestamp;
|
|
|
-import java.text.DecimalFormat;
|
|
|
-import java.text.NumberFormat;
|
|
|
-import java.text.ParseException;
|
|
|
-import java.text.SimpleDateFormat;
|
|
|
+import java.text.*;
|
|
|
import java.time.Duration;
|
|
|
import java.time.LocalDate;
|
|
|
import java.time.LocalDateTime;
|
|
@@ -2462,6 +2459,8 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
|
//totalFee保留小数点后两位
|
|
|
totalFee = Double.parseDouble(df.format(totalFee));
|
|
|
map.put("allCost",totalFee);
|
|
|
+ BigDecimal budget = new BigDecimal(map.get("budget").toString());
|
|
|
+ map.put("budget",budget.doubleValue());
|
|
|
}
|
|
|
HttpRespMsg httpRespMsg = new HttpRespMsg();
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
@@ -2508,6 +2507,7 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
|
List<String> titles=new ArrayList<>();
|
|
|
titles.add("项目编号");
|
|
|
titles.add("项目名称");
|
|
|
+ titles.add("总预算");
|
|
|
titles.add("人工成本");
|
|
|
for (ExpenseMainType expenseMainType : expenseMainTypes) {
|
|
|
titles.add(expenseMainType.getName());
|
|
@@ -2519,6 +2519,7 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
|
List<String> data = new ArrayList<>();
|
|
|
data.add(String.valueOf(item.get("projectCode")));
|
|
|
data.add(String.valueOf(item.get("projectName")));
|
|
|
+ data.add(item.get("budget")==null?"":String.valueOf(item.get("budget")));
|
|
|
data.add(String.valueOf(item.get("feeMan")));
|
|
|
BigDecimal bigDecimal=new BigDecimal(0);
|
|
|
for (ExpenseMainType expenseMainType : expenseMainTypes) {
|