|
@@ -46,10 +46,7 @@ import java.io.File;
|
|
|
import java.io.FileInputStream;
|
|
|
import java.io.FileNotFoundException;
|
|
|
import java.io.InputStream;
|
|
|
-import java.util.ArrayList;
|
|
|
-import java.util.Collection;
|
|
|
-import java.util.Iterator;
|
|
|
-import java.util.List;
|
|
|
+import java.util.*;
|
|
|
|
|
|
/**
|
|
|
* 参数信息表 服务实现类
|
|
@@ -193,12 +190,12 @@ public class TextdictInfoServiceImpl extends ServiceImpl<TextdictInfoMapper, Tex
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public IPage<TextdictInfo> analysisHtmlDefault(String tabId) {
|
|
|
+ public IPage<TextdictInfoVO> analysisHtmlDefault(String tabId) {
|
|
|
String file_path = ParamCache.getValue(CommonConstant.SYS_LOCAL_URL);
|
|
|
String sys_file_net_url = ParamCache.getValue(CommonConstant.SYS_FILE_NET_URL);
|
|
|
|
|
|
WbsTreePrivate wbsTreePrivate = wbsTreePrivateMapper.getByPKeyId(Long.parseLong(tabId));
|
|
|
- IPage<TextdictInfo> textdictInfoPage = new Page<TextdictInfo>();
|
|
|
+ IPage<TextdictInfoVO> textdictInfoPage = new Page<TextdictInfoVO>();
|
|
|
try {
|
|
|
File file1 = ResourceUtil.getFile(wbsTreePrivate.getHtmlUrl());
|
|
|
InputStream fileInputStream;
|
|
@@ -215,9 +212,9 @@ public class TextdictInfoServiceImpl extends ServiceImpl<TextdictInfoMapper, Tex
|
|
|
Element table = doc.select("table").first();
|
|
|
Elements elements = table.select("[defText]");
|
|
|
|
|
|
- ArrayList<TextdictInfo> textdictInfos = new ArrayList<>();
|
|
|
+ ArrayList<TextdictInfoVO> textdictInfos = new ArrayList<>();
|
|
|
for (Element element : elements) {
|
|
|
- TextdictInfo textdictInfo = new TextdictInfo();
|
|
|
+ TextdictInfoVO textdictInfo = new TextdictInfoVO();
|
|
|
String keyname = element.attr("keyname");
|
|
|
String placeholder = element.attr("placeholder");
|
|
|
String defText = element.attr("defText");
|
|
@@ -225,6 +222,7 @@ public class TextdictInfoServiceImpl extends ServiceImpl<TextdictInfoMapper, Tex
|
|
|
textdictInfo.setColName(placeholder);
|
|
|
textdictInfo.setSigRoleName(defText);
|
|
|
textdictInfo.setType(4);
|
|
|
+ textdictInfo.setId(-1L);
|
|
|
textdictInfos.add(textdictInfo);
|
|
|
}
|
|
|
textdictInfoPage.setRecords(textdictInfos);
|