|
@@ -45,6 +45,7 @@ import javax.servlet.http.HttpServletRequest;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
import java.io.*;
|
|
|
import java.math.BigDecimal;
|
|
|
+import java.math.RoundingMode;
|
|
|
import java.sql.Timestamp;
|
|
|
import java.text.DecimalFormat;
|
|
|
import java.text.NumberFormat;
|
|
@@ -2719,6 +2720,7 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
|
});
|
|
|
}
|
|
|
DecimalFormat decimalFormat = new DecimalFormat("#0.0");
|
|
|
+ decimalFormat.setRoundingMode(RoundingMode.HALF_UP);
|
|
|
//加完标题再增加数据行
|
|
|
record.forEach(r->{
|
|
|
List<String> data = new ArrayList<>();
|
|
@@ -2912,6 +2914,7 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
|
}
|
|
|
String total = totalMoneyCost.toString();
|
|
|
DecimalFormat df = new DecimalFormat("#0.0");
|
|
|
+ df.setRoundingMode(RoundingMode.HALF_UP);
|
|
|
//合计
|
|
|
List<String> sumRow = new ArrayList<String>();
|
|
|
//sumRow.add("合计");
|
|
@@ -4641,6 +4644,7 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
|
List<ProjectLevel> projectLevelList = projectLevelMapper.selectList(new QueryWrapper<ProjectLevel>().eq("company_id", user.getCompanyId()));
|
|
|
DateTimeFormatter sdf =DateTimeFormatter.ofPattern("yyyy-MM-dd");
|
|
|
DecimalFormat df = new DecimalFormat("##0.0#");
|
|
|
+ df.setRoundingMode(RoundingMode.HALF_UP);
|
|
|
//获取项目子表 数据
|
|
|
List<Integer> collect = projectVOList.stream().distinct().map(pv -> pv.getId()).collect(Collectors.toList());
|
|
|
//防止空数据
|
|
@@ -5346,7 +5350,9 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
|
}
|
|
|
}
|
|
|
DecimalFormat df = new DecimalFormat("#0.00");
|
|
|
+ df.setRoundingMode(RoundingMode.HALF_UP);
|
|
|
DecimalFormat df2 = new DecimalFormat("#0");
|
|
|
+ df2.setRoundingMode(RoundingMode.HALF_UP);
|
|
|
for (HashMap project : projectList) {
|
|
|
List<String> data = new ArrayList<>();
|
|
|
data.add((String)project.get("projectCode"));
|