提交 2e1f7b9f authored 作者: 孙洁清's avatar 孙洁清

Merge branch 'master' of git.yfzx.zjtys.com.cn:912-system/monitor/inspect

...@@ -13,6 +13,8 @@ import org.apache.commons.io.FileUtils; ...@@ -13,6 +13,8 @@ import org.apache.commons.io.FileUtils;
import org.apache.tomcat.util.http.fileupload.disk.DiskFileItem; import org.apache.tomcat.util.http.fileupload.disk.DiskFileItem;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.io.Resource; import org.springframework.core.io.Resource;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpMethod;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import org.springframework.web.client.RestTemplate; import org.springframework.web.client.RestTemplate;
...@@ -230,6 +232,7 @@ public class InspectController { ...@@ -230,6 +232,7 @@ public class InspectController {
List<TechnologyContent> technologyContents = new ArrayList<>(); List<TechnologyContent> technologyContents = new ArrayList<>();
for (Warn warn:warns) { for (Warn warn:warns) {
TechnologyContent technologyContent = new TechnologyContent(); TechnologyContent technologyContent = new TechnologyContent();
//technologyContent.setLocal(warn.get);
technologyContent.setFile(warn.getFilePath()); technologyContent.setFile(warn.getFilePath());
technologyContent.setKeyWord(warn.getRule()); technologyContent.setKeyWord(warn.getRule());
technologyContent.setPosition(warn.getLineNum().toString()); technologyContent.setPosition(warn.getLineNum().toString());
...@@ -334,6 +337,8 @@ public class InspectController { ...@@ -334,6 +337,8 @@ public class InspectController {
assessmentReport.setDifficultyAssessment(difficultyAssessment); assessmentReport.setDifficultyAssessment(difficultyAssessment);
WorkLoadUtil workLoadUtil = new WorkLoadUtil(); WorkLoadUtil workLoadUtil = new WorkLoadUtil();
//r:人工费 //r:人工费
RestTemplate restTemplate = new RestTemplate();
//restTemplate.exchange("localhost:8079/config", HttpMethod.GET,new HttpEntity<>())
//计算f //计算f
Budget budget = inspect.getBudgets().getBudget().get(0); Budget budget = inspect.getBudgets().getBudget().get(0);
double f = budget.getProportion()*budget.getSysFund()*budget.getMoneyRate()*budget.getCoefficient(); double f = budget.getProportion()*budget.getSysFund()*budget.getMoneyRate()*budget.getCoefficient();
......
...@@ -25,7 +25,9 @@ public class Evaluation { ...@@ -25,7 +25,9 @@ public class Evaluation {
@Column( length = 48) @Column( length = 48)
private String id; private String id;
private String username; private String username;
@Column(columnDefinition = "TEXT")
private String inEva; private String inEva;
@Column(columnDefinition = "TEXT")
private String outEva; private String outEva;
/** /**
* 数据创建时间 * 数据创建时间
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论