|
@@ -687,7 +687,7 @@ public class ExcelTabController extends BladeController {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- saveOldHtmlConfig(aPrivate, htmlString);
|
|
|
|
|
|
|
+ saveOldHtmlConfig(aPrivate, doc);
|
|
|
File writefile = new File(thmlUrl);
|
|
File writefile = new File(thmlUrl);
|
|
|
FileUtil.writeToFile(writefile, doc.html(), Boolean.parseBoolean("UTF-8"));
|
|
FileUtil.writeToFile(writefile, doc.html(), Boolean.parseBoolean("UTF-8"));
|
|
|
|
|
|
|
@@ -733,7 +733,7 @@ public class ExcelTabController extends BladeController {
|
|
|
return R.success("关联成功");
|
|
return R.success("关联成功");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public void saveOldHtmlConfig(WbsTreePrivate wbsTreePrivate, String htmlString){
|
|
|
|
|
|
|
+ public void saveOldHtmlConfig(WbsTreePrivate wbsTreePrivate, Document doc){
|
|
|
// 获取原默认值配置
|
|
// 获取原默认值配置
|
|
|
List<TextdictInfoVO> defaultConfigs = new ArrayList<>();
|
|
List<TextdictInfoVO> defaultConfigs = new ArrayList<>();
|
|
|
{
|
|
{
|
|
@@ -746,8 +746,6 @@ public class ExcelTabController extends BladeController {
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- // 读取新的html内容
|
|
|
|
|
- Document doc = Jsoup.parse(htmlString);
|
|
|
|
|
// 将原配置信息写入到新的html中,先通过colKey匹配,再通过colName匹配。如果匹配不上,则保存到数据库。后续手动配置、修改
|
|
// 将原配置信息写入到新的html中,先通过colKey匹配,再通过colName匹配。如果匹配不上,则保存到数据库。后续手动配置、修改
|
|
|
defaultConfigs.removeIf(config -> {
|
|
defaultConfigs.removeIf(config -> {
|
|
|
String colKey = config.getColKey();
|
|
String colKey = config.getColKey();
|