提交 ba4b6ec0 authored 作者: 孙洁清's avatar 孙洁清

解决内存溢出

上级 b0210a28
...@@ -6,7 +6,9 @@ import com.zjty.inspect.enums.*; ...@@ -6,7 +6,9 @@ import com.zjty.inspect.enums.*;
import io.netty.util.internal.StringUtil; import io.netty.util.internal.StringUtil;
import org.springframework.util.StringUtils; import org.springframework.util.StringUtils;
import java.math.BigDecimal;
import java.text.DateFormat; import java.text.DateFormat;
import java.text.DecimalFormat;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.*; import java.util.*;
...@@ -225,10 +227,17 @@ public class WpsUtil { ...@@ -225,10 +227,17 @@ public class WpsUtil {
Basis deploy = workload.getDeploy(); Basis deploy = workload.getDeploy();
keyValue.put("workloadDeployVolume", String.valueOf(deploy.getDevelopmentVolume())); keyValue.put("workloadDeployVolume", String.valueOf(deploy.getDevelopmentVolume()));
keyValue.put("workloadDeployCorrectionFactor", String.valueOf(deploy.getCorrectionFactor())); keyValue.put("workloadDeployCorrectionFactor", String.valueOf(deploy.getCorrectionFactor()));
double correctionFactor = development.getCorrectionFactor();
double correctionFactor1 = test.getCorrectionFactor();
double correctionFactor2 = deploy.getCorrectionFactor();
BigDecimal bigDecimal = BigDecimal.valueOf(correctionFactor);
BigDecimal bigDecima2 = BigDecimal.valueOf(correctionFactor1);
BigDecimal bigDecima3 = BigDecimal.valueOf(correctionFactor2);
double v = bigDecimal.add(bigDecima2).add(bigDecima3).doubleValue();
Basis total = workload.getTotal(); Basis total = workload.getTotal();
String correction = new DecimalFormat("0.000").format(v);
keyValue.put("workloadTotalVolume", String.valueOf(total.getDevelopmentVolume())); keyValue.put("workloadTotalVolume", String.valueOf(total.getDevelopmentVolume()));
keyValue.put("workloadTotalCorrectionFactor", String.valueOf(total.getCorrectionFactor())); keyValue.put("workloadTotalCorrectionFactor", correction);
DifficultyAssessment difficultyAssessment = assessmentReport.getDifficultyAssessment(); DifficultyAssessment difficultyAssessment = assessmentReport.getDifficultyAssessment();
keyValue.put("difficultyAssessmentDes", difficultyAssessment.getDes()); keyValue.put("difficultyAssessmentDes", difficultyAssessment.getDes());
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论