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

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

...@@ -91,6 +91,17 @@ public class EvaluationController { ...@@ -91,6 +91,17 @@ public class EvaluationController {
} }
return ServerResponse.ok(null); return ServerResponse.ok(null);
} }
@ApiOperation("根据报告id查询excel输入")
@GetMapping(value = "/in/excel/{id}")
public ServerResponse<List<ExcelDataTemp>> exportInName(@PathVariable String id) {
Evaluation evaluation = evaluationService.findById(id);
if (evaluation != null) {
List<ExcelDataTemp> excelDataTemp = ExcelUtil.parseExcel2Entity(evaluation);
return ServerResponse.ok(excelDataTemp);
} else {
return ServerResponse.ok(new ArrayList<>());
}
}
/** /**
* 修改评估报告 * 修改评估报告
......
...@@ -435,10 +435,6 @@ public class InspectController { ...@@ -435,10 +435,6 @@ public class InspectController {
} }
} }
@PostMapping("/gitdownload") @PostMapping("/gitdownload")
private ServerResponse gitDownloads(String gitAddress, String username, String password) { private ServerResponse gitDownloads(String gitAddress, String username, String password) {
try { try {
...@@ -452,6 +448,8 @@ public class InspectController { ...@@ -452,6 +448,8 @@ public class InspectController {
@PostMapping("/importExcelToRapidAssessment") @PostMapping("/importExcelToRapidAssessment")
private ServerResponse<Reform> uploadFileToInspect(MultipartFile file, String username) throws IOException { private ServerResponse<Reform> uploadFileToInspect(MultipartFile file, String username) throws IOException {
Reform reform = ExcelUtil.parseExcel(file.getInputStream(),file.getOriginalFilename()); Reform reform = ExcelUtil.parseExcel(file.getInputStream(),file.getOriginalFilename());
reform.setUsername(username); reform.setUsername(username);
return ServerResponse.ok(reform); return ServerResponse.ok(reform);
} }
......
...@@ -45,7 +45,6 @@ public enum ApplicationType { ...@@ -45,7 +45,6 @@ public enum ApplicationType {
private Integer code; private Integer code;
private String name; private String name;
private Integer other;
ApplicationType() { ApplicationType() {
} }
......
...@@ -351,7 +351,7 @@ public class ExcelUtil { ...@@ -351,7 +351,7 @@ public class ExcelUtil {
String safe = getExcelCell(90, 2, sheetAt); String safe = getExcelCell(90, 2, sheetAt);
database1.setSafe(yesOrNo(safe)); database1.setSafe(yesOrNo(safe));
String performance = getExcelCell(91, 2, sheetAt); String performance = getExcelCell(91, 2, sheetAt);
if (!"无".equals(performance)) { if (!"".equals(performance) && !"无".equals(performance)) {
database1.setPerformance(1); database1.setPerformance(1);
} }
reform.setDatabase(database1); reform.setDatabase(database1);
...@@ -399,9 +399,6 @@ public class ExcelUtil { ...@@ -399,9 +399,6 @@ public class ExcelUtil {
case "在线视频播放类:请在备注中填写插件名和版本": case "在线视频播放类:请在备注中填写插件名和版本":
browser.setMedia(1); browser.setMedia(1);
break; break;
default:
browser.setOtherDemand(1);
break;
} }
browserPlugs.add(browserPlug); browserPlugs.add(browserPlug);
} }
...@@ -412,7 +409,7 @@ public class ExcelUtil { ...@@ -412,7 +409,7 @@ public class ExcelUtil {
if (!"".equals(apply)) { if (!"".equals(apply)) {
apply1.setCost(Double.valueOf(apply)); apply1.setCost(Double.valueOf(apply));
} }
String remark = getExcelCell(110, 3, sheetAt); String remark = getExcelCell(110, 4, sheetAt);
apply1.setReason(remark); apply1.setReason(remark);
reform.setApply(apply1); reform.setApply(apply1);
SystemStructure systemStructure = new SystemStructure(); SystemStructure systemStructure = new SystemStructure();
......
...@@ -473,7 +473,11 @@ public class WpsUtil { ...@@ -473,7 +473,11 @@ public class WpsUtil {
int i1 = i + 1; int i1 = i + 1;
if (len > i) { if (len > i) {
if (!StringUtils.isEmpty(list.get(i).getName())) { if (!StringUtils.isEmpty(list.get(i).getName())) {
keyValue.put(name + i1, list.get(i).getName()); if(!StringUtils.isEmpty(list.get(i).getDes())){
keyValue.put(name + i1, list.get(i).getDes());
}else{
keyValue.put(name + i1, list.get(i).getName());
}
} else { } else {
keyValue.put(name + i1, "无"); keyValue.put(name + i1, "无");
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论