Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
I
inspect
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
912协同工作系统
项目监控管理工具
inspect
Commits
ba4b6ec0
提交
ba4b6ec0
authored
4月 23, 2020
作者:
孙洁清
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
解决内存溢出
上级
b0210a28
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
11 行增加
和
2 行删除
+11
-2
WpsUtil.java
src/main/java/com/zjty/inspect/utils/WpsUtil.java
+11
-2
没有找到文件。
src/main/java/com/zjty/inspect/utils/WpsUtil.java
浏览文件 @
ba4b6ec0
...
@@ -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
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论