提交 755b4df2 authored 作者: wyl's avatar wyl

工作量工具类

上级 90ec662c
......@@ -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);
}
......
......@@ -29,6 +29,11 @@ public class BrowserDifficulty {
*/
private double difficulty = 1.1;
/**
* 工作量
*/
private double load = 0.0;
/**
* 样式
*/
......
......@@ -32,6 +32,11 @@ public class DatabaseDifficulty {
*/
private double difficulty = 1.1;
/**
* 工作量
*/
private double load = 0.0;
/**
* 依赖
*/
......
......@@ -30,6 +30,11 @@ public class FrameDifficulty {
*/
private double difficulty = 1.1;
/**
* 工作量
*/
private double load = 0.0;
/**
* 详情 1:混合 2:前后端分离
*/
......
......@@ -32,6 +32,11 @@ public class MiddlewareDifficulty {
*/
private double difficulty = 1.1;
/**
* 工作量
*/
private double load = 0.0;
/**
* 依赖详情
*/
......
......@@ -32,6 +32,11 @@ public class ProgramDifficulty {
*/
private double difficulty = 1.1;
/**
* 工作量
*/
private double load = 0.0;
/**
* 依赖详情
*/
......
......@@ -144,7 +144,7 @@ public class Reform {
private Database database;
/**
* 迁移策略 1:休息日 2:晚间切换
* 迁移策略 1:休息日 2:晚间切换 3:短暂停止
*/
private Integer strategy;
/**
......
......@@ -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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论