Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
I
inspect
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
912协同工作系统
项目监控管理工具
inspect
Commits
755b4df2
提交
755b4df2
authored
3月 07, 2020
作者:
wyl
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
工作量工具类
上级
90ec662c
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
32 行增加
和
3 行删除
+32
-3
InspectController.java
...n/java/com/zjty/inspect/controller/InspectController.java
+5
-1
BrowserDifficulty.java
src/main/java/com/zjty/inspect/entity/BrowserDifficulty.java
+5
-0
DatabaseDifficulty.java
...main/java/com/zjty/inspect/entity/DatabaseDifficulty.java
+5
-0
FrameDifficulty.java
src/main/java/com/zjty/inspect/entity/FrameDifficulty.java
+5
-0
MiddlewareDifficulty.java
...in/java/com/zjty/inspect/entity/MiddlewareDifficulty.java
+5
-0
ProgramDifficulty.java
src/main/java/com/zjty/inspect/entity/ProgramDifficulty.java
+5
-0
Reform.java
src/main/java/com/zjty/inspect/entity/Reform.java
+1
-1
WorkLoadUtil.java
src/main/java/com/zjty/inspect/utils/WorkLoadUtil.java
+0
-0
application.properties
src/main/resources/application.properties
+1
-1
没有找到文件。
src/main/java/com/zjty/inspect/controller/InspectController.java
浏览文件 @
755b4df2
...
...
@@ -18,6 +18,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.core.io.Resource
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.client.RestTemplate
;
import
org.springframework.web.multipart.MultipartFile
;
import
org.springframework.web.multipart.commons.CommonsMultipartFile
;
...
...
@@ -338,7 +339,10 @@ public class InspectController {
Budget
budget
=
inspect
.
getBudgets
().
getBudget
().
get
(
0
);
double
f
=
budget
.
getProportion
()*
budget
.
getSysFund
()*
budget
.
getMoneyRate
()*
budget
.
getCoefficient
();
System
.
out
.
println
(
"F:"
+
f
);
workLoadUtil
.
result
(
reform
,
assessmentReport
,
f
,
120
);
RestTemplate
template
=
new
RestTemplate
();
ResponseEntity
forObject
=
template
.
getForObject
(
""
,
ResponseEntity
.
class
);
//forObject.getBody()
workLoadUtil
.
result
(
reform
,
assessmentReport
,
f
,
1.5
);
return
ResponseEntity
.
ok
(
assessmentReport
);
}
...
...
src/main/java/com/zjty/inspect/entity/BrowserDifficulty.java
浏览文件 @
755b4df2
...
...
@@ -29,6 +29,11 @@ public class BrowserDifficulty {
*/
private
double
difficulty
=
1.1
;
/**
* 工作量
*/
private
double
load
=
0.0
;
/**
* 样式
*/
...
...
src/main/java/com/zjty/inspect/entity/DatabaseDifficulty.java
浏览文件 @
755b4df2
...
...
@@ -32,6 +32,11 @@ public class DatabaseDifficulty {
*/
private
double
difficulty
=
1.1
;
/**
* 工作量
*/
private
double
load
=
0.0
;
/**
* 依赖
*/
...
...
src/main/java/com/zjty/inspect/entity/FrameDifficulty.java
浏览文件 @
755b4df2
...
...
@@ -30,6 +30,11 @@ public class FrameDifficulty {
*/
private
double
difficulty
=
1.1
;
/**
* 工作量
*/
private
double
load
=
0.0
;
/**
* 详情 1:混合 2:前后端分离
*/
...
...
src/main/java/com/zjty/inspect/entity/MiddlewareDifficulty.java
浏览文件 @
755b4df2
...
...
@@ -32,6 +32,11 @@ public class MiddlewareDifficulty {
*/
private
double
difficulty
=
1.1
;
/**
* 工作量
*/
private
double
load
=
0.0
;
/**
* 依赖详情
*/
...
...
src/main/java/com/zjty/inspect/entity/ProgramDifficulty.java
浏览文件 @
755b4df2
...
...
@@ -32,6 +32,11 @@ public class ProgramDifficulty {
*/
private
double
difficulty
=
1.1
;
/**
* 工作量
*/
private
double
load
=
0.0
;
/**
* 依赖详情
*/
...
...
src/main/java/com/zjty/inspect/entity/Reform.java
浏览文件 @
755b4df2
...
...
@@ -144,7 +144,7 @@ public class Reform {
private
Database
database
;
/**
* 迁移策略 1:休息日 2:晚间切换
* 迁移策略 1:休息日 2:晚间切换
3:短暂停止
*/
private
Integer
strategy
;
/**
...
...
src/main/java/com/zjty/inspect/utils/WorkLoadUtil.java
浏览文件 @
755b4df2
差异被折叠。
点击展开。
src/main/resources/application.properties
浏览文件 @
755b4df2
...
...
@@ -52,7 +52,7 @@ spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
#spring.datasource.url=jdbc:mysql://192.168.1.249:3306/bservice?useSSL=false&serverTimezone=UTC&autoReconnect=true&characterEncoding=utf-8
spring.datasource.url
=
jdbc:mysql://localhost:3306/adaptation?useSSL=false&serverTimezone=UTC&autoReconnect=true&characterEncoding=utf-8
spring.datasource.username
=
root
spring.datasource.password
=
root
spring.datasource.password
=
123456
maven.home
=
/Users/mcj/apache-maven-3.6.1
maven.command
=
dependency:tree -DoutputType=txt -DoutputFile=
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论