调整标题
This commit is contained in:
parent
28014408fc
commit
fca9b034b6
|
|
@ -89,7 +89,8 @@ public class Ftl2Csv {
|
||||||
|
|
||||||
// 创建列表csv文件
|
// 创建列表csv文件
|
||||||
FileWriter writer = new FileWriter("F:/penaltyList.csv");
|
FileWriter writer = new FileWriter("F:/penaltyList.csv");
|
||||||
String[] listHeader = new String[]{"NOTICEID", "NoticeTitle", "NoticeNO", "NoticeContent", "JudAuth", "JudAuth_CN", "JudDate", "NoticeDate", "NoticeType", "S_EXT_FROMNODE", "S_EXT_DATATIME"};
|
String[] listHeader = new String[]{"NOTICEID", "NOTICETITLE", "NOTICENO", "NOTICECONTENT",
|
||||||
|
"JUDAUTH", "JUDAUTH_CN", "JUDDATE", "NOTICEDATE", "NOTICETYPE", "S_EXT_FROMNODE", "S_EXT_DATATIME", "dstate"};
|
||||||
CSVPrinter csvPrinter = new CSVPrinter(writer, CSVFormat.DEFAULT.withHeader(listHeader));
|
CSVPrinter csvPrinter = new CSVPrinter(writer, CSVFormat.DEFAULT.withHeader(listHeader));
|
||||||
List<List<String>> result = new ArrayList<>();
|
List<List<String>> result = new ArrayList<>();
|
||||||
for (PenaltyNoticeInfoForm value : list.values()) {
|
for (PenaltyNoticeInfoForm value : list.values()) {
|
||||||
|
|
@ -106,6 +107,7 @@ public class Ftl2Csv {
|
||||||
resultSet.add("91");
|
resultSet.add("91");
|
||||||
resultSet.add(StringUtils.EMPTY);
|
resultSet.add(StringUtils.EMPTY);
|
||||||
resultSet.add(date);
|
resultSet.add(date);
|
||||||
|
resultSet.add("0");
|
||||||
result.add(resultSet);
|
result.add(resultSet);
|
||||||
}
|
}
|
||||||
csvPrinter.printRecords(result);
|
csvPrinter.printRecords(result);
|
||||||
|
|
@ -215,7 +217,7 @@ public class Ftl2Csv {
|
||||||
String id = each.attr("id");
|
String id = each.attr("id");
|
||||||
if(!content.isEmpty()){
|
if(!content.isEmpty()){
|
||||||
PenaltyNoticeInfoForm atom = new PenaltyNoticeInfoForm();
|
PenaltyNoticeInfoForm atom = new PenaltyNoticeInfoForm();
|
||||||
atom.setContent(content.html());
|
atom.setContent(content.html().replace("\n", "").replace("\t", ""));
|
||||||
atom.setNameList(each.select("table").html());
|
atom.setNameList(each.select("table").html());
|
||||||
result.put(id, atom);
|
result.put(id, atom);
|
||||||
}else if(!iframe.isEmpty()){
|
}else if(!iframe.isEmpty()){
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue