|
@@ -408,26 +408,6 @@ public class WbsFormElementServiceImpl extends BaseServiceImpl<WbsFormElementMap
|
|
|
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
- //元素库修改元素的同时要去修改html上面的元素
|
|
|
- String sql="select DISTINCT html_url from m_wbs_tree_private where init_table_name='"+initTableName+"' and is_deleted=0 and html_url is not null";
|
|
|
- List<String> htmlurls = jdbcTemplate.query(sql, new SingleColumnRowMapper<>(String.class));
|
|
|
- if(!htmlurls.isEmpty()){
|
|
|
- for (String htmlurl : htmlurls) {
|
|
|
- InputStream inputStream = FileUtils.getInputStreamByUrl(htmlurl);
|
|
|
- String htmlString = IoUtil.readToString(inputStream);
|
|
|
- Document doc = Jsoup.parse(htmlString);
|
|
|
- for (WbsFormElement wbsFormElement : wbsFormElements) {
|
|
|
- Elements elements = doc.select("[keyname^=" + wbsFormElement.getEKey() + "__]");;
|
|
|
- for (Element element : elements) {
|
|
|
- element.attr("placeholder", wbsFormElement.getEName());
|
|
|
- }
|
|
|
- }
|
|
|
- File writefile = new File(htmlurl);
|
|
|
- FileUtil.writeToFile(writefile, doc.html(), Boolean.parseBoolean("UTF-8"));
|
|
|
- inputStream.close();
|
|
|
- }
|
|
|
- }
|
|
|
}
|
|
|
return R.success("操作成功");
|
|
|
}
|