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
82a27aa9
Commit
82a27aa9
authored
May 04, 2023
by
陈健智
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
全网搜导出修复
parent
864c6aae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
src/main/java/com/zhiwei/brandkbs2/pojo/dto/ExportSearchWholeDTO.java
+6
-2
No files found.
src/main/java/com/zhiwei/brandkbs2/pojo/dto/ExportSearchWholeDTO.java
View file @
82a27aa9
...
@@ -7,6 +7,7 @@ import lombok.Data;
...
@@ -7,6 +7,7 @@ import lombok.Data;
import
lombok.ToString
;
import
lombok.ToString
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.Objects
;
/**
/**
* 全网搜舆情导出实体类
* 全网搜舆情导出实体类
...
@@ -41,8 +42,11 @@ public class ExportSearchWholeDTO {
...
@@ -41,8 +42,11 @@ public class ExportSearchWholeDTO {
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
(
Objects
.
isNull
(
jsonObject
.
getString
(
"platform"
))
?
""
:
jsonObject
.
getString
(
"platform"
));
dto
.
setChannel
(
jsonObject
.
getString
(
"channel"
));
dto
.
setChannel
(
Objects
.
isNull
(
jsonObject
.
getString
(
"channel"
))
?
""
:
jsonObject
.
getString
(
"channel"
));
dto
.
setTitle
(
Objects
.
isNull
(
jsonObject
.
getString
(
"title"
))
?
""
:
jsonObject
.
getString
(
"title"
));
dto
.
setContent
(
Objects
.
isNull
(
jsonObject
.
getString
(
"content"
))
?
""
:
jsonObject
.
getString
(
"content"
));
dto
.
setUrl
(
Objects
.
isNull
(
jsonObject
.
getString
(
"url"
))
?
""
:
jsonObject
.
getString
(
"url"
));
return
dto
;
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