Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
I
inspect
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
912协同工作系统
项目监控管理工具
inspect
Commits
7375f0ea
提交
7375f0ea
authored
4月 18, 2020
作者:
孙洁清
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'lj-project' of git.yfzx.zjtys.com.cn:912-system/monitor/inspect into lj-project
上级
b2c9fc51
5d8245fd
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
84 行增加
和
49 行删除
+84
-49
AopIntercept.java
src/main/java/com/zjty/inspect/aop/AopIntercept.java
+2
-2
EvaluationController.java
...ava/com/zjty/inspect/controller/EvaluationController.java
+28
-19
LanguageEnum.java
src/main/java/com/zjty/inspect/enums/LanguageEnum.java
+3
-0
Inspector.java
src/main/java/com/zjty/inspect/inspect/Inspector.java
+6
-0
InspectServiceImpl.java
...ava/com/zjty/inspect/service/impl/InspectServiceImpl.java
+6
-1
WpsUtil.java
src/main/java/com/zjty/inspect/utils/WpsUtil.java
+39
-27
没有找到文件。
src/main/java/com/zjty/inspect/aop/AopIntercept.java
浏览文件 @
7375f0ea
...
@@ -54,7 +54,7 @@ public class AopIntercept {
...
@@ -54,7 +54,7 @@ public class AopIntercept {
String
url
=
"http://"
+
address
+
":12345/user/getLogin/"
+
sessionId
;
String
url
=
"http://"
+
address
+
":12345/user/getLogin/"
+
sessionId
;
ServerResponse
serverResponse
=
restTemplate
.
getForObject
(
url
,
ServerResponse
.
class
);
ServerResponse
serverResponse
=
restTemplate
.
getForObject
(
url
,
ServerResponse
.
class
);
if
(
serverResponse
!=
null
&&
serverResponse
.
getCode
()!=
200
){
if
(
serverResponse
!=
null
&&
serverResponse
.
getCode
()!=
200
){
ResponseEntity
.
status
(
403
).
b
uild
(
);
ResponseEntity
.
status
(
403
).
b
ody
(
1
);
}
}
User
user
=
serverResponse
.
getData
();
User
user
=
serverResponse
.
getData
();
AuthAnnotation
authAnnotation
=
((
MethodSignature
)
joinPoint
.
getSignature
()).
getMethod
().
getAnnotation
(
AuthAnnotation
.
class
);
AuthAnnotation
authAnnotation
=
((
MethodSignature
)
joinPoint
.
getSignature
()).
getMethod
().
getAnnotation
(
AuthAnnotation
.
class
);
...
@@ -77,7 +77,7 @@ public class AopIntercept {
...
@@ -77,7 +77,7 @@ public class AopIntercept {
}
}
}
}
}
}
return
ResponseEntity
.
status
(
403
).
b
uild
(
);
return
ResponseEntity
.
status
(
403
).
b
ody
(
"f"
);
}
}
}
}
src/main/java/com/zjty/inspect/controller/EvaluationController.java
浏览文件 @
7375f0ea
...
@@ -22,48 +22,50 @@ import java.util.Map;
...
@@ -22,48 +22,50 @@ import java.util.Map;
@RestController
@RestController
@RequestMapping
(
"/evaluation"
)
@RequestMapping
(
"/evaluation"
)
@Api
(
value
=
"评估报告管理接口"
,
description
=
"评估报告管理接口,提供页面的增、删、改、查"
)
@Api
(
value
=
"评估报告管理接口"
,
description
=
"评估报告管理接口,提供页面的增、删、改、查"
)
public
class
EvaluationController
{
public
class
EvaluationController
{
@Autowired
@Autowired
private
EvaluationService
evaluationService
;
private
EvaluationService
evaluationService
;
/**
/**
* 新增评估报告
* 新增评估报告
*
* @param evaluation 评估报告
* @param evaluation 评估报告
* @return
* @return
*/
*/
@PostMapping
@PostMapping
@ApiOperation
(
"新增评估报告"
)
@ApiOperation
(
"新增评估报告"
)
public
ResponseEntity
rule
(
@RequestBody
Evaluation
evaluation
){
public
ResponseEntity
rule
(
@RequestBody
Evaluation
evaluation
)
{
evaluationService
.
save
(
evaluation
);
evaluationService
.
save
(
evaluation
);
return
ResponseEntity
.
ok
(
200
);
return
ResponseEntity
.
ok
(
200
);
}
}
@ApiOperation
(
"根据用户名查询最新的报告输出"
)
@ApiOperation
(
"根据用户名查询最新的报告输出"
)
@GetMapping
(
value
=
"/eva"
)
@GetMapping
(
value
=
"/eva"
)
public
ResponseEntity
getName
(
@RequestParam
String
name
,
@RequestParam
String
id
)
{
public
ResponseEntity
getName
(
@RequestParam
String
name
,
@RequestParam
String
id
)
{
if
(
StringUtils
.
isEmpty
(
id
)||
id
.
equals
(
"null"
))
{
if
(
StringUtils
.
isEmpty
(
id
)
||
id
.
equals
(
"null"
))
{
Evaluation
e
=
evaluationService
.
findByName
(
name
);
Evaluation
e
=
evaluationService
.
findByName
(
name
);
if
(
e
!=
null
)
{
if
(
e
!=
null
)
{
AssessmentReport
assessmentReport
=
JSON
.
parseObject
(
e
.
getOutEva
(),
AssessmentReport
.
class
);
AssessmentReport
assessmentReport
=
JSON
.
parseObject
(
e
.
getOutEva
(),
AssessmentReport
.
class
);
return
ResponseEntity
.
ok
(
assessmentReport
);
return
ResponseEntity
.
ok
(
assessmentReport
);
}
}
return
ResponseEntity
.
ok
(
null
);
return
ResponseEntity
.
ok
(
null
);
}
}
Evaluation
evaluation
=
evaluationService
.
findById
(
id
);
Evaluation
evaluation
=
evaluationService
.
findById
(
id
);
if
(
evaluation
!=
null
)
{
if
(
evaluation
!=
null
)
{
AssessmentReport
assessmentReport
=
JSON
.
parseObject
(
evaluation
.
getOutEva
(),
AssessmentReport
.
class
);
AssessmentReport
assessmentReport
=
JSON
.
parseObject
(
evaluation
.
getOutEva
(),
AssessmentReport
.
class
);
return
ResponseEntity
.
ok
(
assessmentReport
);
return
ResponseEntity
.
ok
(
assessmentReport
);
}
}
return
ResponseEntity
.
ok
(
null
);
return
ResponseEntity
.
ok
(
null
);
}
}
@ApiOperation
(
"根据id查询输入"
)
@ApiOperation
(
"根据id查询输入"
)
@GetMapping
(
value
=
"/in/{name}"
)
@GetMapping
(
value
=
"/in/{name}"
)
//@AuthAnnotation(code = {"000800"})
//@AuthAnnotation(code = {"000800"})
public
ResponseEntity
getInName
(
@PathVariable
String
name
)
{
public
ResponseEntity
getInName
(
@PathVariable
String
name
)
{
Evaluation
evaluation
=
evaluationService
.
findById
(
name
);
Evaluation
evaluation
=
evaluationService
.
findById
(
name
);
if
(
evaluation
!=
null
)
{
if
(
evaluation
!=
null
)
{
Reform
reform
=
JSON
.
parseObject
(
evaluation
.
getInEva
(),
Reform
.
class
);
Reform
reform
=
JSON
.
parseObject
(
evaluation
.
getInEva
(),
Reform
.
class
);
return
ResponseEntity
.
ok
(
reform
);
return
ResponseEntity
.
ok
(
reform
);
}
}
...
@@ -75,7 +77,7 @@ public class EvaluationController {
...
@@ -75,7 +77,7 @@ public class EvaluationController {
@AuthAnnotation
(
code
=
{
"000800"
})
@AuthAnnotation
(
code
=
{
"000800"
})
public
ResponseEntity
getInId
(
@PathVariable
String
id
)
{
public
ResponseEntity
getInId
(
@PathVariable
String
id
)
{
Evaluation
evaluation
=
evaluationService
.
findById
(
id
);
Evaluation
evaluation
=
evaluationService
.
findById
(
id
);
if
(
evaluation
!=
null
)
{
if
(
evaluation
!=
null
)
{
return
ResponseEntity
.
ok
(
evaluation
);
return
ResponseEntity
.
ok
(
evaluation
);
}
}
return
ResponseEntity
.
ok
(
null
);
return
ResponseEntity
.
ok
(
null
);
...
@@ -85,15 +87,17 @@ public class EvaluationController {
...
@@ -85,15 +87,17 @@ public class EvaluationController {
@GetMapping
(
value
=
"/in/excel/{id}"
)
@GetMapping
(
value
=
"/in/excel/{id}"
)
public
ResponseEntity
exportInName
(
@PathVariable
String
id
)
{
public
ResponseEntity
exportInName
(
@PathVariable
String
id
)
{
Evaluation
evaluation
=
evaluationService
.
findById
(
id
);
Evaluation
evaluation
=
evaluationService
.
findById
(
id
);
if
(
evaluation
!=
null
)
{
if
(
evaluation
!=
null
)
{
List
<
ExcelDataTemp
>
excelDataTemp
=
ExcelUtil
.
parseExcel2Entity
(
evaluation
);
List
<
ExcelDataTemp
>
excelDataTemp
=
ExcelUtil
.
parseExcel2Entity
(
evaluation
);
return
ResponseEntity
.
ok
(
excelDataTemp
);
return
ResponseEntity
.
ok
(
excelDataTemp
);
}
else
{
}
else
{
return
ResponseEntity
.
ok
(
new
ArrayList
<
ExcelDataTemp
>());
return
ResponseEntity
.
ok
(
new
ArrayList
<
ExcelDataTemp
>());
}
}
}
}
/**
/**
* 修改评估报告
* 修改评估报告
*
* @param evaluation 规则封装
* @param evaluation 规则封装
* @param id id
* @param id id
* @return
* @return
...
@@ -101,25 +105,29 @@ public class EvaluationController {
...
@@ -101,25 +105,29 @@ public class EvaluationController {
@PostMapping
(
value
=
"/{id}"
)
@PostMapping
(
value
=
"/{id}"
)
@ApiOperation
(
"修改评估报告"
)
@ApiOperation
(
"修改评估报告"
)
@AuthAnnotation
(
code
=
{
"000800"
})
@AuthAnnotation
(
code
=
{
"000800"
})
public
ResponseEntity
update
(
@RequestBody
Evaluation
evaluation
,
@PathVariable
String
id
)
{
public
ResponseEntity
update
(
@RequestBody
Evaluation
evaluation
,
@PathVariable
String
id
)
{
evaluation
.
setId
(
id
);
evaluation
.
setId
(
id
);
evaluationService
.
update
(
evaluation
);
evaluationService
.
update
(
evaluation
);
return
ResponseEntity
.
ok
(
200
);
return
ResponseEntity
.
ok
(
200
);
}
}
/**
/**
* 根据id删除评估报告
* 根据id删除评估报告
*
* @param id id
* @param id id
* @return
* @return
*/
*/
@ApiOperation
(
"根据id删除评估报告"
)
@ApiOperation
(
"根据id删除评估报告"
)
@DeleteMapping
(
value
=
"/{id}"
)
@DeleteMapping
(
value
=
"/{id}"
)
@AuthAnnotation
(
code
=
{
"000800"
})
@AuthAnnotation
(
code
=
{
"000800"
})
public
ResponseEntity
deleteById
(
@PathVariable
String
id
){
public
ResponseEntity
deleteById
(
@PathVariable
String
id
)
{
evaluationService
.
delete
(
id
);
evaluationService
.
delete
(
id
);
return
ResponseEntity
.
ok
(
200
);
return
ResponseEntity
.
ok
(
200
);
}
}
/**
/**
* 分页+多条件查询
* 分页+多条件查询
*
* @param searchMap 查询条件封装
* @param searchMap 查询条件封装
* @param page 页码
* @param page 页码
* @param size 页大小
* @param size 页大小
...
@@ -127,24 +135,25 @@ public class EvaluationController {
...
@@ -127,24 +135,25 @@ public class EvaluationController {
*/
*/
@ApiOperation
(
"分页查询页面列表"
)
@ApiOperation
(
"分页查询页面列表"
)
@ApiImplicitParams
({
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
"page"
,
value
=
"页码"
,
required
=
true
,
paramType
=
"path"
,
dataType
=
"int"
),
@ApiImplicitParam
(
name
=
"page"
,
value
=
"页码"
,
required
=
true
,
paramType
=
"path"
,
dataType
=
"int"
),
@ApiImplicitParam
(
name
=
"size"
,
value
=
"每页记录数"
,
required
=
true
,
paramType
=
"path"
,
dataType
=
"int"
)
@ApiImplicitParam
(
name
=
"size"
,
value
=
"每页记录数"
,
required
=
true
,
paramType
=
"path"
,
dataType
=
"int"
)
})
})
@RequestMapping
(
value
=
"/search/{page}/{size}"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/search/{page}/{size}"
,
method
=
RequestMethod
.
POST
)
@AuthAnnotation
(
code
=
{
"000800"
})
@AuthAnnotation
(
code
=
{
"000800"
})
public
ResponseEntity
findSearch
(
@RequestBody
Map
searchMap
,
@PathVariable
int
page
,
@PathVariable
int
size
)
{
public
ResponseEntity
findSearch
(
@RequestBody
Map
searchMap
,
@PathVariable
int
page
,
@PathVariable
int
size
)
{
Page
<
Evaluation
>
pageList
=
evaluationService
.
findSearch
(
searchMap
,
page
,
size
);
Page
<
Evaluation
>
pageList
=
evaluationService
.
findSearch
(
searchMap
,
page
,
size
);
return
ResponseEntity
.
ok
(
new
PageResult
<
Evaluation
>(
pageList
.
getTotalElements
(),
pageList
.
getContent
())
);
return
ResponseEntity
.
ok
(
new
PageResult
<
Evaluation
>(
pageList
.
getTotalElements
(),
pageList
.
getContent
())
);
}
}
/**
/**
* 修改评估报告
* 修改评估报告
*
* @param id id
* @param id id
* @return
* @return
*/
*/
@GetMapping
(
value
=
"/bg/{id}"
)
@GetMapping
(
value
=
"/bg/{id}"
)
@ApiOperation
(
"修改评估报告"
)
@ApiOperation
(
"修改评估报告"
)
public
ResponseEntity
findall
(
@PathVariable
String
id
){
public
ResponseEntity
findall
(
@PathVariable
String
id
)
{
Evaluation
evaluation
=
evaluationService
.
findById
(
id
);
Evaluation
evaluation
=
evaluationService
.
findById
(
id
);
Map
<
String
,
String
>
wps
=
WpsUtil
.
createWps
(
evaluation
);
Map
<
String
,
String
>
wps
=
WpsUtil
.
createWps
(
evaluation
);
return
ResponseEntity
.
ok
(
wps
);
return
ResponseEntity
.
ok
(
wps
);
...
...
src/main/java/com/zjty/inspect/enums/LanguageEnum.java
浏览文件 @
7375f0ea
...
@@ -24,6 +24,9 @@ public enum LanguageEnum {
...
@@ -24,6 +24,9 @@ public enum LanguageEnum {
QITA
(
12
,
"其他:请在备注中填写,如需填写多个,请以逗号分隔"
),
QITA
(
12
,
"其他:请在备注中填写,如需填写多个,请以逗号分隔"
),
JAVASCRIPT
(
13
,
"JavaScript"
),
JAVASCRIPT
(
13
,
"JavaScript"
),
HTML
(
14
,
"HTML"
),
HTML
(
14
,
"HTML"
),
JSP
(
15
,
"JSP"
),
NET
(
16
,
".NET"
),
;
;
private
Integer
code
;
private
Integer
code
;
...
...
src/main/java/com/zjty/inspect/inspect/Inspector.java
浏览文件 @
7375f0ea
...
@@ -203,6 +203,9 @@ public class Inspector {
...
@@ -203,6 +203,9 @@ public class Inspector {
* 配置文件的一个类型,xml文件
* 配置文件的一个类型,xml文件
*/
*/
if
(
"xml"
.
equals
(
entry
.
getKey
()))
{
if
(
"xml"
.
equals
(
entry
.
getKey
()))
{
List
<
Path
>
value
=
entry
.
getValue
();
for
(
Path
path
:
entry
.
getValue
())
{
for
(
Path
path
:
entry
.
getValue
())
{
if
(
path
.
getFileName
().
endsWith
(
"pom.xml"
))
{
if
(
path
.
getFileName
().
endsWith
(
"pom.xml"
))
{
try
{
try
{
...
@@ -224,6 +227,8 @@ public class Inspector {
...
@@ -224,6 +227,8 @@ public class Inspector {
}
}
}
}
}
}
}
}
}
}
//指定后缀到文件匹配关键字
//指定后缀到文件匹配关键字
...
@@ -267,6 +272,7 @@ public class Inspector {
...
@@ -267,6 +272,7 @@ public class Inspector {
mostStatus
=
language
.
getCode
();
mostStatus
=
language
.
getCode
();
maxnum
=
entry
.
getValue
().
getNumber
();
maxnum
=
entry
.
getValue
().
getNumber
();
}
}
}
}
//设置语言
//设置语言
report
.
setLanguage
(
most
==
null
?
LanguageEnum
.
NONE
.
getCode
()
:
mostStatus
);
report
.
setLanguage
(
most
==
null
?
LanguageEnum
.
NONE
.
getCode
()
:
mostStatus
);
...
...
src/main/java/com/zjty/inspect/service/impl/InspectServiceImpl.java
浏览文件 @
7375f0ea
...
@@ -53,10 +53,15 @@ public class InspectServiceImpl implements InspectService {
...
@@ -53,10 +53,15 @@ public class InspectServiceImpl implements InspectService {
suffixLanguageMapping
.
put
(
"vue"
,
LanguageEnum
.
JAVASCRIPT
);
suffixLanguageMapping
.
put
(
"vue"
,
LanguageEnum
.
JAVASCRIPT
);
suffixLanguageMapping
.
put
(
"cpp"
,
LanguageEnum
.
C
);
suffixLanguageMapping
.
put
(
"cpp"
,
LanguageEnum
.
C
);
suffixLanguageMapping
.
put
(
"py"
,
LanguageEnum
.
PYTHON
);
suffixLanguageMapping
.
put
(
"py"
,
LanguageEnum
.
PYTHON
);
suffixLanguageMapping
.
put
(
"jsp"
,
LanguageEnum
.
J
AVA
);
suffixLanguageMapping
.
put
(
"jsp"
,
LanguageEnum
.
J
SP
);
suffixLanguageMapping
.
put
(
"go"
,
LanguageEnum
.
GO
);
suffixLanguageMapping
.
put
(
"go"
,
LanguageEnum
.
GO
);
suffixLanguageMapping
.
put
(
"js"
,
LanguageEnum
.
JAVASCRIPT
);
suffixLanguageMapping
.
put
(
"js"
,
LanguageEnum
.
JAVASCRIPT
);
suffixLanguageMapping
.
put
(
"html"
,
LanguageEnum
.
HTML
);
suffixLanguageMapping
.
put
(
"html"
,
LanguageEnum
.
HTML
);
suffixLanguageMapping
.
put
(
"php"
,
LanguageEnum
.
PHP
);
suffixLanguageMapping
.
put
(
"vbp"
,
LanguageEnum
.
VB
);
suffixLanguageMapping
.
put
(
"rs"
,
LanguageEnum
.
RUST
);
suffixLanguageMapping
.
put
(
"dpk"
,
LanguageEnum
.
DELPHI
);
//构造成员变量
//构造成员变量
inspector
.
setInspectParameter
(
inspectParameter
);
inspector
.
setInspectParameter
(
inspectParameter
);
//构造报告vo
//构造报告vo
...
...
src/main/java/com/zjty/inspect/utils/WpsUtil.java
浏览文件 @
7375f0ea
...
@@ -71,7 +71,8 @@ public class WpsUtil {
...
@@ -71,7 +71,8 @@ public class WpsUtil {
Browser
browser
=
reform
.
getBrowser
();
Browser
browser
=
reform
.
getBrowser
();
List
<
BaseDes
>
compatibleBrowsers
=
browser
.
getCompatibleBrowsers
();
List
<
BaseDes
>
compatibleBrowsers
=
browser
.
getCompatibleBrowsers
();
for
(
int
i
=
0
;
i
<
compatibleBrowsers
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
compatibleBrowsers
.
size
();
i
++)
{
keyValue
.
put
(
"compatibleBrowsers"
+
i
+
1
,
compatibleBrowsers
.
get
(
i
).
getName
());
int
i1
=
i
+
1
;
keyValue
.
put
(
"compatibleBrowsers"
+
i1
,
compatibleBrowsers
.
get
(
i
).
getName
());
}
}
List
<
BaseDes
>
browserPlugs
=
browser
.
getBrowserPlugs
();
List
<
BaseDes
>
browserPlugs
=
browser
.
getBrowserPlugs
();
...
@@ -81,18 +82,22 @@ public class WpsUtil {
...
@@ -81,18 +82,22 @@ public class WpsUtil {
Middleware
middleware
=
reform
.
getMiddleware
();
Middleware
middleware
=
reform
.
getMiddleware
();
for
(
int
i
=
0
;
i
<
middleware
.
getMiddlewareEnums
().
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
middleware
.
getMiddlewareEnums
().
size
();
i
++)
{
keyValue
.
put
(
"middleware"
+
i
+
1
,
middleware
.
getMiddlewareEnums
().
get
(
i
).
getName
());
int
i1
=
i
+
1
;
keyValue
.
put
(
"middleware"
+
i1
,
middleware
.
getMiddlewareEnums
().
get
(
i
).
getName
());
}
}
List
<
OtherApi
>
otherApis
=
middleware
.
getOtherApis
();
List
<
OtherApi
>
otherApis
=
middleware
.
getOtherApis
();
for
(
int
i
=
0
;
i
<
otherApis
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
otherApis
.
size
();
i
++)
{
keyValue
.
put
(
"otherApi"
+
i
+
1
,
otherApis
.
get
(
i
).
getApiName
());
int
i1
=
i
+
1
;
keyValue
.
put
(
"otherApi"
+
i1
,
otherApis
.
get
(
i
).
getApiName
());
}
}
for
(
int
i
=
0
;
i
<
middleware
.
getMicroServices
().
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
middleware
.
getMicroServices
().
size
();
i
++)
{
keyValue
.
put
(
"microService"
+
i
+
1
,
middleware
.
getMicroServices
().
get
(
i
).
getName
());
int
i1
=
i
+
1
;
keyValue
.
put
(
"microService"
+
i1
,
middleware
.
getMicroServices
().
get
(
i
).
getName
());
}
}
Database
database1
=
reform
.
getDatabase
();
Database
database1
=
reform
.
getDatabase
();
for
(
int
i
=
0
;
i
<
database1
.
getDatabaseType
().
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
database1
.
getDatabaseType
().
size
();
i
++)
{
keyValue
.
put
(
"database"
+
i
+
1
,
database1
.
getDatabaseType
().
get
(
i
).
getName
());
int
i1
=
i
+
1
;
keyValue
.
put
(
"database"
+
i1
,
database1
.
getDatabaseType
().
get
(
i
).
getName
());
}
}
keyValue
.
put
(
"databaseView"
,
flipYesOrNo
(
database1
.
getView
()));
keyValue
.
put
(
"databaseView"
,
flipYesOrNo
(
database1
.
getView
()));
keyValue
.
put
(
"databaseStorage"
,
flipYesOrNo
(
database1
.
getStorage
()));
keyValue
.
put
(
"databaseStorage"
,
flipYesOrNo
(
database1
.
getStorage
()));
...
@@ -114,19 +119,24 @@ public class WpsUtil {
...
@@ -114,19 +119,24 @@ public class WpsUtil {
DevelopLanguageSystem
developLanguageSystem
=
reform
.
getDevelopLanguageSystem
();
DevelopLanguageSystem
developLanguageSystem
=
reform
.
getDevelopLanguageSystem
();
keyValue
.
put
(
"language"
,
developLanguageSystem
.
getName
());
keyValue
.
put
(
"language"
,
developLanguageSystem
.
getName
());
for
(
int
i
=
0
;
i
<
developLanguageSystem
.
getDevFrameworks
().
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
developLanguageSystem
.
getDevFrameworks
().
size
();
i
++)
{
keyValue
.
put
(
"devFrameworks"
+
i
+
1
,
developLanguageSystem
.
getDevFrameworks
().
get
(
i
).
getName
());
int
i1
=
i
+
1
;
keyValue
.
put
(
"devFrameworks"
+
i1
,
developLanguageSystem
.
getDevFrameworks
().
get
(
i
).
getName
());
}
}
for
(
int
i
=
0
;
i
<
developLanguageSystem
.
getFontDevTechnologies
().
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
developLanguageSystem
.
getFontDevTechnologies
().
size
();
i
++)
{
keyValue
.
put
(
"fontDevTechnologies"
+
i
+
1
,
developLanguageSystem
.
getFontDevTechnologies
().
get
(
i
).
getName
());
int
i1
=
i
+
1
;
keyValue
.
put
(
"fontDevTechnologies"
+
i1
,
developLanguageSystem
.
getFontDevTechnologies
().
get
(
i
).
getName
());
}
}
for
(
int
i
=
0
;
i
<
developLanguageSystem
.
getCsDevTechnologies
().
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
developLanguageSystem
.
getCsDevTechnologies
().
size
();
i
++)
{
keyValue
.
put
(
"csDevTechnologies"
+
i
+
1
,
developLanguageSystem
.
getCsDevTechnologies
().
get
(
i
).
getName
());
int
i1
=
i
+
1
;
keyValue
.
put
(
"csDevTechnologies"
+
i1
,
developLanguageSystem
.
getCsDevTechnologies
().
get
(
i
).
getName
());
}
}
for
(
int
i
=
0
;
i
<
developLanguageSystem
.
getOpGAs
().
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
developLanguageSystem
.
getOpGAs
().
size
();
i
++)
{
keyValue
.
put
(
"opGAs"
+
i
+
1
,
developLanguageSystem
.
getOpGAs
().
get
(
i
).
getName
());
int
i1
=
i
+
1
;
keyValue
.
put
(
"opGAs"
+
i1
,
developLanguageSystem
.
getOpGAs
().
get
(
i
).
getName
());
}
}
for
(
int
i
=
0
;
i
<
developLanguageSystem
.
getDevLanguages
().
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
developLanguageSystem
.
getDevLanguages
().
size
();
i
++)
{
keyValue
.
put
(
"devLanguages"
+
i
+
1
,
developLanguageSystem
.
getDevLanguages
().
get
(
i
).
getName
());
int
i1
=
i
+
1
;
keyValue
.
put
(
"devLanguages"
+
i1
,
developLanguageSystem
.
getDevLanguages
().
get
(
i
).
getName
());
}
}
LocalSystemDep
localSystemDep
=
reform
.
getLocalSystemDep
();
LocalSystemDep
localSystemDep
=
reform
.
getLocalSystemDep
();
...
@@ -155,14 +165,16 @@ public class WpsUtil {
...
@@ -155,14 +165,16 @@ public class WpsUtil {
keyValue
.
put
(
"technologyDes"
,
technologyList
.
getDes
());
keyValue
.
put
(
"technologyDes"
,
technologyList
.
getDes
());
List
<
TechnologyReport
>
technologyReports
=
technologyList
.
getTechnologyReports
();
List
<
TechnologyReport
>
technologyReports
=
technologyList
.
getTechnologyReports
();
for
(
int
i
=
0
;
i
<
technologyList
.
getTechnologyReports
().
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
technologyList
.
getTechnologyReports
().
size
();
i
++)
{
keyValue
.
put
(
"technology"
+
i
+
1
,
technologyReports
.
get
(
i
).
getTechnology
());
int
i2
=
i
+
1
;
keyValue
.
put
(
"technology"
+
i2
,
technologyReports
.
get
(
i
).
getTechnology
());
for
(
int
i1
=
0
;
i1
<
technologyReports
.
get
(
i
).
getTechnologyContents
().
size
();
i1
++)
{
for
(
int
i1
=
0
;
i1
<
technologyReports
.
get
(
i
).
getTechnologyContents
().
size
();
i1
++)
{
int
i3
=
i1
+
1
;
TechnologyContent
technologyContent
=
technologyReports
.
get
(
i
).
getTechnologyContents
().
get
(
i1
);
TechnologyContent
technologyContent
=
technologyReports
.
get
(
i
).
getTechnologyContents
().
get
(
i1
);
keyValue
.
put
(
"technologyContentLocal"
+
i
+
1
+
"-"
+
i1
+
1
,
technologyContent
.
getLocal
());
keyValue
.
put
(
"technologyContentLocal"
+
i
2
+
"-"
+
i3
,
technologyContent
.
getLocal
());
keyValue
.
put
(
"technologyContentKeyWord"
+
i
+
1
+
"-"
+
i1
+
1
,
technologyContent
.
getKeyWord
());
keyValue
.
put
(
"technologyContentKeyWord"
+
i
2
+
"-"
+
i3
,
technologyContent
.
getKeyWord
());
keyValue
.
put
(
"technologyContentFile"
+
i
+
1
+
"-"
+
i1
+
1
,
technologyContent
.
getFile
());
keyValue
.
put
(
"technologyContentFile"
+
i
2
+
"-"
+
i3
,
technologyContent
.
getFile
());
keyValue
.
put
(
"technologyContentPosition"
+
i
+
1
+
"-"
+
i1
+
1
,
technologyContent
.
getPosition
());
keyValue
.
put
(
"technologyContentPosition"
+
i
2
+
"-"
+
i3
,
technologyContent
.
getPosition
());
keyValue
.
put
(
"technologyContentStrategy"
+
i
+
1
+
"-"
+
i1
+
1
,
getMode
(
technologyContent
.
getStrategy
()));
keyValue
.
put
(
"technologyContentStrategy"
+
i
2
+
"-"
+
i3
,
getMode
(
technologyContent
.
getStrategy
()));
}
}
}
}
for
(
TechnologyReport
technologyReport
:
technologyReports
)
{
for
(
TechnologyReport
technologyReport
:
technologyReports
)
{
...
@@ -204,26 +216,26 @@ public class WpsUtil {
...
@@ -204,26 +216,26 @@ public class WpsUtil {
keyValue
.
put
(
"workloadTestVolume"
,
String
.
valueOf
(
test
.
getDevelopmentVolume
()));
keyValue
.
put
(
"workloadTestVolume"
,
String
.
valueOf
(
test
.
getDevelopmentVolume
()));
keyValue
.
put
(
"workloadTestCorrectionFactor"
,
String
.
valueOf
(
test
.
getCorrectionFactor
()));
keyValue
.
put
(
"workloadTestCorrectionFactor"
,
String
.
valueOf
(
test
.
getCorrectionFactor
()));
Basis
deploy
=
workload
.
getDe
velopment
();
Basis
deploy
=
workload
.
getDe
ploy
();
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
()));
Basis
total
=
workload
.
get
Development
();
Basis
total
=
workload
.
get
Total
();
keyValue
.
put
(
"workloadTotalVolume"
,
String
.
valueOf
(
total
.
getDevelopmentVolume
()));
keyValue
.
put
(
"workloadTotalVolume"
,
String
.
valueOf
(
total
.
getDevelopmentVolume
()));
keyValue
.
put
(
"workloadTotalCorrectionFactor"
,
String
.
valueOf
(
total
.
getCorrectionFactor
()));
keyValue
.
put
(
"workloadTotalCorrectionFactor"
,
String
.
valueOf
(
total
.
getCorrectionFactor
()));
DifficultyAssessment
difficultyAssessment
=
assessmentReport
.
getDifficultyAssessment
();
DifficultyAssessment
difficultyAssessment
=
assessmentReport
.
getDifficultyAssessment
();
keyValue
.
put
(
"difficultyAssessmentDes"
,
difficultyAssessment
.
getDes
());
keyValue
.
put
(
"difficultyAssessmentDes"
,
difficultyAssessment
.
getDes
());
FrameDifficulty
frameDifficulty
=
difficultyAssessment
.
getFrameDifficulty
();
FrameDifficulty
frameDifficulty
=
difficultyAssessment
.
getFrameDifficulty
();
keyValue
.
put
(
"difficulty
Frame
DifficultySystemEvaluation"
,
String
.
valueOf
(
frameDifficulty
.
getSystemEvaluation
()));
keyValue
.
put
(
"difficultyDifficultySystemEvaluation"
,
String
.
valueOf
(
frameDifficulty
.
getSystemEvaluation
()));
keyValue
.
put
(
"difficulty
Frame
DifficultyMessage"
,
String
.
valueOf
(
frameDifficulty
.
getMessage
()));
keyValue
.
put
(
"difficultyDifficultyMessage"
,
String
.
valueOf
(
frameDifficulty
.
getMessage
()));
keyValue
.
put
(
"difficulty
Frame
DifficultyDifficulty"
,
String
.
valueOf
(
frameDifficulty
.
getDifficulty
()));
keyValue
.
put
(
"difficultyDifficultyDifficulty"
,
String
.
valueOf
(
frameDifficulty
.
getDifficulty
()));
keyValue
.
put
(
"difficulty
Frame
DifficultyLoad"
,
String
.
valueOf
(
frameDifficulty
.
getLoad
()));
keyValue
.
put
(
"difficultyDifficultyLoad"
,
String
.
valueOf
(
frameDifficulty
.
getLoad
()));
keyValue
.
put
(
"difficulty
Frame
DifficultyDetails"
,
Framework
.
getByCode
(
frameDifficulty
.
getDetails
()).
getName
());
keyValue
.
put
(
"difficultyDifficultyDetails"
,
Framework
.
getByCode
(
frameDifficulty
.
getDetails
()).
getName
());
keyValue
.
put
(
"difficulty
Frame
DifficultyDistributed"
,
flipYesOrNo
(
frameDifficulty
.
getDistributed
()));
keyValue
.
put
(
"difficultyDifficultyDistributed"
,
flipYesOrNo
(
frameDifficulty
.
getDistributed
()));
keyValue
.
put
(
"difficulty
Frame
DifficultyLoadBalance"
,
flipYesOrNo
(
frameDifficulty
.
getLoadBalance
()));
keyValue
.
put
(
"difficultyDifficultyLoadBalance"
,
flipYesOrNo
(
frameDifficulty
.
getLoadBalance
()));
keyValue
.
put
(
"difficulty
Frame
DifficultyDisaster"
,
flipYesOrNo
(
frameDifficulty
.
getDisaster
()));
keyValue
.
put
(
"difficultyDifficultyDisaster"
,
flipYesOrNo
(
frameDifficulty
.
getDisaster
()));
keyValue
.
put
(
"difficulty
Frame
DifficultyOtherDemand"
,
frameDifficulty
.
getOtherDemand
());
keyValue
.
put
(
"difficultyDifficultyOtherDemand"
,
frameDifficulty
.
getOtherDemand
());
BrowserDifficulty
browserDifficulty
=
difficultyAssessment
.
getBrowserDifficulty
();
BrowserDifficulty
browserDifficulty
=
difficultyAssessment
.
getBrowserDifficulty
();
keyValue
.
put
(
"browserDifficultySystemEvaluation"
,
String
.
valueOf
(
browserDifficulty
.
getSystemEvaluation
()));
keyValue
.
put
(
"browserDifficultySystemEvaluation"
,
String
.
valueOf
(
browserDifficulty
.
getSystemEvaluation
()));
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论