Commit f9e22450 by shenjunjie

Merge branch 'release' into 'master'

Release

See merge request !316
parents 92ec96ed f411cede
...@@ -38,11 +38,15 @@ public class ExportSearchWholeDTO { ...@@ -38,11 +38,15 @@ public class ExportSearchWholeDTO {
@ExcelProperty("地址") @ExcelProperty("地址")
private String url; private String url;
public static ExportSearchWholeDTO creatExportSearchWholeDTO(JSONObject jsonObject){ public static ExportSearchWholeDTO creatExportSearchWholeDTO(JSONObject jsonObject) {
ExportSearchWholeDTO dto = new ExportSearchWholeDTO(); ExportSearchWholeDTO dto = new ExportSearchWholeDTO();
dto.setTime(new Date((Long) jsonObject.get("time"))); dto.setTime(new Date((Long) jsonObject.get("time")));
dto.setPlatform(jsonObject.getString("platform")); dto.setPlatform(jsonObject.getString("platform"));
dto.setChannel(jsonObject.getString("channel")); dto.setChannel(jsonObject.getString("channel"));
// 截取为excel单元格允许的最大长度
dto.setTitle(jsonObject.getString("title"));
dto.setContent(jsonObject.getString("content"));
dto.setUrl(jsonObject.getString("url"));
return dto; 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