Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
brandkbs2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
shenjunjie
brandkbs2
Commits
34909def
Commit
34909def
authored
Sep 07, 2022
by
陈健智
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ExportSearchWholeDTO
parent
e6d94787
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
0 deletions
+51
-0
src/main/java/com/zhiwei/brandkbs2/pojo/dto/ExportSearchWholeDTO.java
+51
-0
No files found.
src/main/java/com/zhiwei/brandkbs2/pojo/dto/ExportSearchWholeDTO.java
0 → 100644
View file @
34909def
package
com
.
zhiwei
.
brandkbs2
.
pojo
.
dto
;
import
com.alibaba.excel.annotation.ExcelProperty
;
import
com.alibaba.excel.annotation.write.style.ColumnWidth
;
import
com.alibaba.fastjson.JSONObject
;
import
lombok.Data
;
import
lombok.ToString
;
import
java.util.Date
;
/**
* 全网搜舆情导出实体类
*/
@Data
@ToString
public
class
ExportSearchWholeDTO
{
@ColumnWidth
(
20
)
@ExcelProperty
(
"时间"
)
private
Date
time
;
@ColumnWidth
(
20
)
@ExcelProperty
(
"平台"
)
private
String
platform
;
@ColumnWidth
(
20
)
@ExcelProperty
(
"渠道"
)
private
String
channel
;
@ColumnWidth
(
50
)
@ExcelProperty
(
"标题"
)
private
String
title
;
@ColumnWidth
(
50
)
@ExcelProperty
(
"文本"
)
private
String
content
;
@ColumnWidth
(
50
)
@ExcelProperty
(
"地址"
)
private
String
url
;
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"
));
dto
.
setTitle
(
jsonObject
.
getString
(
"title"
));
dto
.
setContent
(
jsonObject
.
getString
(
"content"
));
dto
.
setUrl
(
jsonObject
.
getString
(
"url"
));
return
dto
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment