Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
I
inspect
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
912协同工作系统
项目监控管理工具
inspect
Commits
6162fb2b
提交
6162fb2b
authored
3月 07, 2020
作者:
孙洁清
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of git.yfzx.zjtys.com.cn:912-system/monitor/inspect
上级
12478821
f80bbd99
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
11 个修改的文件
包含
154 行增加
和
31 行删除
+154
-31
InspectController.java
...n/java/com/zjty/inspect/controller/InspectController.java
+0
-0
AssessmentReport.java
src/main/java/com/zjty/inspect/entity/AssessmentReport.java
+1
-1
DatabaseDifficulty.java
...main/java/com/zjty/inspect/entity/DatabaseDifficulty.java
+1
-1
File.java
src/main/java/com/zjty/inspect/entity/File.java
+19
-0
Reform.java
src/main/java/com/zjty/inspect/entity/Reform.java
+58
-26
SystemStructure.java
src/main/java/com/zjty/inspect/entity/SystemStructure.java
+5
-2
OperateSystem.java
src/main/java/com/zjty/inspect/enums/OperateSystem.java
+2
-0
Inspector.java
src/main/java/com/zjty/inspect/inspect/Inspector.java
+3
-0
AssessmentReportUtils.java
...in/java/com/zjty/inspect/utils/AssessmentReportUtils.java
+61
-0
BudgetUitl.java
src/main/java/com/zjty/inspect/utils/BudgetUitl.java
+2
-0
WorkLoadUtil.java
src/main/java/com/zjty/inspect/utils/WorkLoadUtil.java
+2
-1
没有找到文件。
src/main/java/com/zjty/inspect/controller/InspectController.java
浏览文件 @
6162fb2b
差异被折叠。
点击展开。
src/main/java/com/zjty/inspect/entity/AssessmentReport.java
浏览文件 @
6162fb2b
...
@@ -48,7 +48,7 @@ public class AssessmentReport {
...
@@ -48,7 +48,7 @@ public class AssessmentReport {
/**
/**
* 预算金额 double
* 预算金额 double
*/
*/
private
double
budget
=
1.1
;
private
String
budget
=
"53.973348451903085--129.498761216"
;
/**
/**
* 原系统规模
* 原系统规模
...
...
src/main/java/com/zjty/inspect/entity/DatabaseDifficulty.java
浏览文件 @
6162fb2b
...
@@ -60,5 +60,5 @@ public class DatabaseDifficulty {
...
@@ -60,5 +60,5 @@ public class DatabaseDifficulty {
/**
/**
* 其他内容
* 其他内容
*/
*/
private
Integer
otherContent
=
1
;
private
String
otherContent
=
"其他内容"
;
}
}
src/main/java/com/zjty/inspect/entity/File.java
0 → 100644
浏览文件 @
6162fb2b
package
com
.
zjty
.
inspect
.
entity
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
/**
* <h4>Description : inspect</h4>
*
* @author : M@tr!x [xhyrzldf@foxmail.com]
* @Date : 2020-03-06 21:25
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public
class
File
{
private
String
name
;
private
String
path
;
}
src/main/java/com/zjty/inspect/entity/Reform.java
浏览文件 @
6162fb2b
...
@@ -5,6 +5,8 @@ import lombok.AllArgsConstructor;
...
@@ -5,6 +5,8 @@ import lombok.AllArgsConstructor;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
lombok.NoArgsConstructor
;
import
java.util.Date
;
/**
/**
* <h4>Description : 应用系统改造替换表单</h4>
* <h4>Description : 应用系统改造替换表单</h4>
*
*
...
@@ -15,31 +17,34 @@ import lombok.NoArgsConstructor;
...
@@ -15,31 +17,34 @@ import lombok.NoArgsConstructor;
@AllArgsConstructor
@AllArgsConstructor
@NoArgsConstructor
@NoArgsConstructor
public
class
Reform
{
public
class
Reform
{
/*
基础
*/
/**
/**
*
替换方式 int(1:改造 2:适配)
*
admin 是否是管理员
*/
*/
private
Integer
mode
;
private
Integer
admin
;
/**
/**
* 改造解释链接
* username
*/
private
String
username
;
/*
快速评估部分
*/
*/
private
String
reformUrl
;
/**
/**
*
适配解释链接
*
替换方式 int(1:改造 2:适配)
*/
*/
private
String
adaptationUrl
;
private
Integer
mode
;
/**
/**
* 系统名称
* 系统名称
*/
*/
private
String
projectName
;
private
String
projectName
;
/**
* 上传类型
*/
private
String
uploadType
;
/**
/**
* 代码地址
* 代码地址
...
@@ -47,49 +52,76 @@ public class Reform {
...
@@ -47,49 +52,76 @@ public class Reform {
private
String
codeUrl
;
private
String
codeUrl
;
/**
/**
* 模块数
* 文件名称
*/
private
String
codeName
;
/**
* git地址
*/
*/
private
String
moduleNum
;
private
String
gitUrl
;
/**
/**
*
开发语言
*
模块数
*/
*/
private
String
language
;
private
Integer
moduleNum
;
/**
/**
* 原开发费用
* 原开发费用
*/
*/
private
double
cost
;
private
Integer
cost
;
/**
* 开发单位是否在本地int 1:是 2:否
*/
private
Integer
address
;
/**
* 是否为涉密信息系统 int 1:是 2:否
*/
private
Integer
secret
;
/**
/**
*
原开发周期
*
容灾能力 int 1:是 2:否
*/
*/
private
Integer
cycl
e
;
private
Integer
disasterToleranc
e
;
/**
/**
* 服务设备台数
* 安全能力
* 1:无
* 2:弱
* 3:强
*/
*/
private
Integer
serverNum
;
private
Integer
safe
;
/**
* 架构
*/
private
Integer
framework
;
/**
/**
* 该应用类型
* 该应用类型
*/
*/
private
ApplicationType
applicationType
;
private
Integer
applicationType
;
/**
/**
*
开发单位是否在本地int 1:是 2:否
*
运行时间
*/
*/
private
Integer
address
;
private
Integer
time
;
/**
/**
*
是否为涉密信息系统 int 1:是 2:否
*
数据库表数量
*/
*/
private
Integer
secret
;
private
Integer
tableNum
;
/**
/**
* 详细填写
* 数据库数据量
*/
private
Integer
databaseNum
;
/*
详细填写
*/
*/
private
String
message
;
/**
/**
* 系统部署架构
* 系统部署架构
...
...
src/main/java/com/zjty/inspect/entity/SystemStructure.java
浏览文件 @
6162fb2b
...
@@ -56,9 +56,12 @@ public class SystemStructure {
...
@@ -56,9 +56,12 @@ public class SystemStructure {
private
Integer
loadBalance
;
private
Integer
loadBalance
;
/**
/**
* 容灾 int 1:是 2:否
* 容灾
* 1:无0,有+0.05
* 2:有0,无-0.05
* 3:有0,无-0.1
*/
*/
private
Integer
disaster
;
private
Integer
disaster
=
0
;
/**
/**
* 其他需求
* 其他需求
...
...
src/main/java/com/zjty/inspect/enums/OperateSystem.java
浏览文件 @
6162fb2b
...
@@ -11,4 +11,6 @@ public enum OperateSystem {
...
@@ -11,4 +11,6 @@ public enum OperateSystem {
WINSERVER2006
,
WINSERVER2006
,
WINSERVER2012
,
WINSERVER2012
,
REDHATREALES
,
REDHATREALES
,
UBUNTU
,
AIX
,
}
}
src/main/java/com/zjty/inspect/inspect/Inspector.java
浏览文件 @
6162fb2b
package
com
.
zjty
.
inspect
.
inspect
;
package
com
.
zjty
.
inspect
.
inspect
;
import
com.alibaba.fastjson.JSON
;
import
com.zjty.inspect.dao.*
;
import
com.zjty.inspect.dao.*
;
import
com.zjty.inspect.entity.*
;
import
com.zjty.inspect.entity.*
;
import
com.zjty.inspect.enums.DependenceManagement
;
import
com.zjty.inspect.enums.DependenceManagement
;
...
@@ -14,6 +15,7 @@ import lombok.extern.slf4j.Slf4j;
...
@@ -14,6 +15,7 @@ import lombok.extern.slf4j.Slf4j;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
springfox.documentation.spring.web.json.Json
;
import
java.io.IOException
;
import
java.io.IOException
;
import
java.nio.charset.MalformedInputException
;
import
java.nio.charset.MalformedInputException
;
...
@@ -521,6 +523,7 @@ public class Inspector {
...
@@ -521,6 +523,7 @@ public class Inspector {
stringBuilder
.
append
(
dependency
.
getGroupId
()).
append
(
":"
).
append
(
dependency
.
getArtifactId
());
stringBuilder
.
append
(
dependency
.
getGroupId
()).
append
(
":"
).
append
(
dependency
.
getArtifactId
());
if
(
inspectParameter
.
getAdmin
()
==
1
)
{
if
(
inspectParameter
.
getAdmin
()
==
1
)
{
Rule
rule
=
new
Rule
();
Rule
rule
=
new
Rule
();
System
.
out
.
println
(
JSON
.
toJSONString
(
techJavaSupport
));
rule
.
setTechnologyId
(
techJavaSupport
.
getId
());
rule
.
setTechnologyId
(
techJavaSupport
.
getId
());
rule
.
setTarget
(
dependency
.
getGroupId
());
rule
.
setTarget
(
dependency
.
getGroupId
());
rule
.
setTechnologyName
(
techJavaSupport
.
getTechnologyName
());
rule
.
setTechnologyName
(
techJavaSupport
.
getTechnologyName
());
...
...
src/main/java/com/zjty/inspect/utils/AssessmentReportUtils.java
0 → 100644
浏览文件 @
6162fb2b
package
com
.
zjty
.
inspect
.
utils
;
import
com.zjty.inspect.entity.AssessmentReport
;
/**
* <h4>Description : inspect</h4>
*
* @author : M@tr!x [xhyrzldf@foxmail.com]
* @Date : 2020-03-06 13:15
*/
public
class
AssessmentReportUtils
{
/*
计算以下三项,拼接字符串,完成关键技术及替换策略建议:
*/
//关键技术xx个
//本地程序开发项xx个
//中间件依赖修改项xx个
/*
先计算难度,再算基础工作量
*/
//系统框架难度P(混合:1.1 前后分离:1)即系统评估
//系统框架难度e(分布式 0.2 负载均衡 0.1 容灾0.1 其他0.1) e = 1.2*1.1*1.1*1.1 即用户额外信息
//系统框架综合难度 p*e
//浏览器难度P(0.001*样式数量+0.01*API数量+0.01*插件数量+1) max=1.3
//浏览器难度e(1+需求分数/100)*(1+需求分数/100) max=1.3
//浏览器综合难度 p*e开根号
//中间件系统评估
/*
基础工作量评估
*/
//总计J = F(马) * 人工费
//开发修正系数
//测试修正系数
//部署修正系数
//开发的开发量 J*(开发修正系数+0.4)
//测试的开发量 J*(测试修正系数+0.3)
//部署的开发量 J*(部署修正系数+0.3)
//合计的开发量 总数
public
AssessmentReport
algorithm
(
AssessmentReport
assessmentReport
){
return
null
;
}
}
src/main/java/com/zjty/inspect/utils/BudgetUitl.java
浏览文件 @
6162fb2b
package
com
.
zjty
.
inspect
.
utils
;
package
com
.
zjty
.
inspect
.
utils
;
import
com.alibaba.fastjson.JSON
;
import
com.zjty.inspect.dao.CoefficientModelDao
;
import
com.zjty.inspect.dao.CoefficientModelDao
;
import
com.zjty.inspect.dao.ConfigParamDao
;
import
com.zjty.inspect.dao.ConfigParamDao
;
import
com.zjty.inspect.entity.*
;
import
com.zjty.inspect.entity.*
;
...
@@ -61,6 +62,7 @@ public class BudgetUitl {
...
@@ -61,6 +62,7 @@ public class BudgetUitl {
}
}
inspectParameter
.
setMoneyRate
(
Double
.
valueOf
(
doubleHashMap
.
get
(
1
)));
inspectParameter
.
setMoneyRate
(
Double
.
valueOf
(
doubleHashMap
.
get
(
1
)));
Double
moneyRate
=
inspectParameter
.
getMoneyRate
();
Double
moneyRate
=
inspectParameter
.
getMoneyRate
();
System
.
out
.
println
(
JSON
.
toJSONString
(
"inspectParameter:"
+
inspectParameter
));
int
years
=
inspectParameter
.
getYears
();
int
years
=
inspectParameter
.
getYears
();
double
pow
=
Math
.
pow
(
moneyRate
,
years
);
double
pow
=
Math
.
pow
(
moneyRate
,
years
);
...
...
src/main/java/com/zjty/inspect/utils/WorkLoadUtil.java
浏览文件 @
6162fb2b
...
@@ -7,6 +7,7 @@ import org.slf4j.Logger;
...
@@ -7,6 +7,7 @@ import org.slf4j.Logger;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Objects
;
/**
/**
* 应用系统改造替换工作量根据表单计算
* 应用系统改造替换工作量根据表单计算
...
@@ -321,7 +322,7 @@ public class WorkLoadUtil {
...
@@ -321,7 +322,7 @@ public class WorkLoadUtil {
eDatabase
*=
(
1
+(
databaseDifficulty
.
getSafe
()==
1
?
1
:
0
)/
100
)*
eDatabase
*=
(
1
+(
databaseDifficulty
.
getSafe
()==
1
?
1
:
0
)/
100
)*
(
1
+(
databaseDifficulty
.
getSeparate
()==
1
?
1
:
0
)/
100
)*
(
1
+(
databaseDifficulty
.
getSeparate
()==
1
?
1
:
0
)/
100
)*
(
1
+(
databaseDifficulty
.
getPerformance
()==
1
?
1
:
0
)/
100
)*
(
1
+(
databaseDifficulty
.
getPerformance
()==
1
?
1
:
0
)/
100
)*
(
1
+(
databaseDifficulty
.
getOtherContent
()==
1
?
1
:
0
)/
100
);
(
1
+(
Objects
.
equals
(
databaseDifficulty
.
getOtherContent
(),
""
)
?
1
:
0
)/
100
);
logger
.
info
(
"数据库难度:"
+
eDatabase
);
logger
.
info
(
"数据库难度:"
+
eDatabase
);
databaseDifficulty
.
setDifficulty
(
eDatabase
);
databaseDifficulty
.
setDifficulty
(
eDatabase
);
//工作量2*j*(z-1)
//工作量2*j*(z-1)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论