提交 11077ec9 authored 作者: 马晨俊's avatar 马晨俊

mcj:更新excel导入导出

上级 ca106c83
...@@ -174,7 +174,7 @@ public class ExcelUtil { ...@@ -174,7 +174,7 @@ public class ExcelUtil {
developLanguageSystem.setDevFrameworks(devFrameworks); developLanguageSystem.setDevFrameworks(devFrameworks);
List<BaseDes> csDevTechnologies = new ArrayList<>(); List<BaseDes> fontTechnologies = new ArrayList<>();
for (int i = 22; i < 27; i++) { for (int i = 22; i < 27; i++) {
String framework = getExcelCell(i, 2, sheetAt); String framework = getExcelCell(i, 2, sheetAt);
if ("".equals(framework)) { if ("".equals(framework)) {
...@@ -182,17 +182,17 @@ public class ExcelUtil { ...@@ -182,17 +182,17 @@ public class ExcelUtil {
} }
String version = getExcelCell(i, 3, sheetAt); String version = getExcelCell(i, 3, sheetAt);
String remark = getExcelCell(i, 4, sheetAt); String remark = getExcelCell(i, 4, sheetAt);
BaseDes csDevTechnology = new BaseDes(); BaseDes font = new BaseDes();
FontTechnologyEnum csTechnologyEnum = FontTechnologyEnum.getByName(framework); FontTechnologyEnum fontTechnologyEnum = FontTechnologyEnum.getByName(framework);
if (csTechnologyEnum != null) { if (fontTechnologyEnum != null) {
csDevTechnology.setCode(csTechnologyEnum.getCode()); font.setCode(fontTechnologyEnum.getCode());
csDevTechnology.setName(framework); font.setName(framework);
csDevTechnology.setDes(remark); font.setDes(remark);
csDevTechnology.setVersion(version); font.setVersion(version);
csDevTechnologies.add(csDevTechnology); fontTechnologies.add(font);
} }
} }
developLanguageSystem.setCsDevTechnologies(csDevTechnologies); developLanguageSystem.setFontDevTechnologies(fontTechnologies);
List<BaseDes> fontDevTechnologies = new ArrayList<>(); List<BaseDes> fontDevTechnologies = new ArrayList<>();
for (int i = 28; i < 33; i++) { for (int i = 28; i < 33; i++) {
...@@ -212,7 +212,7 @@ public class ExcelUtil { ...@@ -212,7 +212,7 @@ public class ExcelUtil {
fontDevTechnologies.add(cs); fontDevTechnologies.add(cs);
} }
} }
developLanguageSystem.setFontDevTechnologies(fontDevTechnologies); developLanguageSystem.setCsDevTechnologies(fontDevTechnologies);
List<BaseDes> opGAS = new ArrayList<>(); List<BaseDes> opGAS = new ArrayList<>();
for (int i = 34; i < 39; i++) { for (int i = 34; i < 39; i++) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论