Commit f411cede by shenjunjie

Merge branch 'feature' into 'release'

Feature

See merge request !315
parents a1592195 d62f5506
......@@ -38,11 +38,15 @@ public class ExportSearchWholeDTO {
@ExcelProperty("地址")
private String url;
public static ExportSearchWholeDTO creatExportSearchWholeDTO(JSONObject jsonObject){
public static ExportSearchWholeDTO creatExportSearchWholeDTO(JSONObject jsonObject) {
ExportSearchWholeDTO dto = new ExportSearchWholeDTO();
dto.setTime(new Date((Long) jsonObject.get("time")));
dto.setPlatform(jsonObject.getString("platform"));
dto.setChannel(jsonObject.getString("channel"));
// 截取为excel单元格允许的最大长度
dto.setTitle(jsonObject.getString("title"));
dto.setContent(jsonObject.getString("content"));
dto.setUrl(jsonObject.getString("url"));
return dto;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment