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
5fe98ca2
Commit
5fe98ca2
authored
May 15, 2023
by
shenjunjie
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'release' into 'master'
Release See merge request
!322
parents
52c9e84f
4a7e509b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
src/main/java/com/zhiwei/brandkbs2/controller/app/AppArticleController.java
+2
-0
src/main/java/com/zhiwei/brandkbs2/controller/app/AppSearchController.java
+1
-0
src/main/java/com/zhiwei/brandkbs2/service/impl/BehaviorServiceImpl.java
+4
-3
No files found.
src/main/java/com/zhiwei/brandkbs2/controller/app/AppArticleController.java
View file @
5fe98ca2
...
@@ -76,6 +76,7 @@ public class AppArticleController extends BaseController {
...
@@ -76,6 +76,7 @@ public class AppArticleController extends BaseController {
@ApiOperation
(
"原始数据导出"
)
@ApiOperation
(
"原始数据导出"
)
@PostMapping
(
value
=
"/origin/list/export"
)
@PostMapping
(
value
=
"/origin/list/export"
)
@LogRecord
(
description
=
"舆情库-原始数据导出"
,
values
=
{
"startTime"
,
"endTime"
,
"keyword"
,
"platforms"
,
"searchField"
},
entity
=
true
,
arguments
=
true
)
public
ResponseResult
exportOriginList
(
@RequestBody
MarkSearchDTO
markSearchDTO
)
{
public
ResponseResult
exportOriginList
(
@RequestBody
MarkSearchDTO
markSearchDTO
)
{
Pair
<
String
,
List
<
ExportAppYuqingDTO
>>
stringListPair
=
markDataService
.
downloadYuqingMarkList
(
markSearchDTO
);
Pair
<
String
,
List
<
ExportAppYuqingDTO
>>
stringListPair
=
markDataService
.
downloadYuqingMarkList
(
markSearchDTO
);
EasyExcelUtil
.
download
(
stringListPair
.
getLeft
()
+
"_原始数据列表数据"
,
"sheet1"
,
ExportAppYuqingDTO
.
class
,
stringListPair
.
getRight
(),
response
);
EasyExcelUtil
.
download
(
stringListPair
.
getLeft
()
+
"_原始数据列表数据"
,
"sheet1"
,
ExportAppYuqingDTO
.
class
,
stringListPair
.
getRight
(),
response
);
...
@@ -155,6 +156,7 @@ public class AppArticleController extends BaseController {
...
@@ -155,6 +156,7 @@ public class AppArticleController extends BaseController {
@ApiOperation
(
"舆情导出"
)
@ApiOperation
(
"舆情导出"
)
@PostMapping
(
value
=
"/mark/list/export"
)
@PostMapping
(
value
=
"/mark/list/export"
)
@LogRecord
(
description
=
"舆情库-有效舆情导出"
,
values
=
{
"startTime"
,
"endTime"
,
"customTags"
,
"field"
,
"keyword"
,
"politicsLevel"
,
"mainBodyType"
,
"platforms"
,
"region"
,
"tags"
},
entity
=
true
,
arguments
=
true
)
public
ResponseResult
exportYuqingMarkList
(
@RequestBody
MarkSearchDTO
markSearchDTO
)
{
public
ResponseResult
exportYuqingMarkList
(
@RequestBody
MarkSearchDTO
markSearchDTO
)
{
Pair
<
String
,
List
<
ExportAppYuqingDTO
>>
stringListPair
=
markDataService
.
downloadYuqingMarkList
(
markSearchDTO
);
Pair
<
String
,
List
<
ExportAppYuqingDTO
>>
stringListPair
=
markDataService
.
downloadYuqingMarkList
(
markSearchDTO
);
EasyExcelUtil
.
download
(
stringListPair
.
getLeft
()
+
"_舆情列表数据"
,
"sheet1"
,
ExportAppYuqingDTO
.
class
,
stringListPair
.
getRight
(),
response
);
EasyExcelUtil
.
download
(
stringListPair
.
getLeft
()
+
"_舆情列表数据"
,
"sheet1"
,
ExportAppYuqingDTO
.
class
,
stringListPair
.
getRight
(),
response
);
...
...
src/main/java/com/zhiwei/brandkbs2/controller/app/AppSearchController.java
View file @
5fe98ca2
...
@@ -156,6 +156,7 @@ public class AppSearchController extends BaseController {
...
@@ -156,6 +156,7 @@ public class AppSearchController extends BaseController {
@ApiOperation
(
"搜索-全网搜-舆情导出"
)
@ApiOperation
(
"搜索-全网搜-舆情导出"
)
@PostMapping
(
"/exportSearchWhole"
)
@PostMapping
(
"/exportSearchWhole"
)
@LogRecord
(
description
=
"全网搜-舆情导出"
,
values
=
{
"startTime"
,
"endTime"
,
"fans"
,
"filterType"
,
"filterWords"
,
"search"
,
"keyword"
,
"platforms"
,
"sensitiveChannels"
,
"sourceKeyword"
},
entity
=
true
,
arguments
=
true
)
public
ResponseResult
exportSearchWhole
(
@RequestBody
SearchFilterDTO
dto
)
{
public
ResponseResult
exportSearchWhole
(
@RequestBody
SearchFilterDTO
dto
)
{
// 针对商业数据库做限制
// 针对商业数据库做限制
if
(
2
==
projectService
.
getProjectById
(
UserThreadLocal
.
getProjectId
()).
getWholeSearchDataSource
())
{
if
(
2
==
projectService
.
getProjectById
(
UserThreadLocal
.
getProjectId
()).
getWholeSearchDataSource
())
{
...
...
src/main/java/com/zhiwei/brandkbs2/service/impl/BehaviorServiceImpl.java
View file @
5fe98ca2
...
@@ -221,9 +221,10 @@ public class BehaviorServiceImpl implements BehaviorService {
...
@@ -221,9 +221,10 @@ public class BehaviorServiceImpl implements BehaviorService {
query
.
addCriteria
(
Criteria
.
where
(
"cTime"
).
gte
(
startTime
).
lt
(
endTime
));
query
.
addCriteria
(
Criteria
.
where
(
"cTime"
).
gte
(
startTime
).
lt
(
endTime
));
query
.
addCriteria
(
Criteria
.
where
(
"projectId"
).
is
(
projectId
));
query
.
addCriteria
(
Criteria
.
where
(
"projectId"
).
is
(
projectId
));
userLogRecordDao
.
addSort
(
query
,
"{\"cTime\":\"descend\"}"
);
userLogRecordDao
.
addSort
(
query
,
"{\"cTime\":\"descend\"}"
);
List
<
UserLogRecord
>
logRecordList
=
userLogRecordDao
.
findList
(
query
);
String
[]
collectionNames
=
userLogRecordDao
.
generateCollectionNames
(
new
Date
(
startTime
),
new
Date
(
endTime
));
List
<
ExportUserLogRecordDTO
>
resList
=
new
ArrayList
<>(
logRecordList
.
size
());
List
<
UserLogRecord
>
userLogRecordList
=
userLogRecordDao
.
findList
(
query
,
collectionNames
);
logRecordList
.
forEach
(
record
->
{
List
<
ExportUserLogRecordDTO
>
resList
=
new
ArrayList
<>(
userLogRecordList
.
size
());
userLogRecordList
.
forEach
(
record
->
{
ExportUserLogRecordDTO
dto
=
new
ExportUserLogRecordDTO
();
ExportUserLogRecordDTO
dto
=
new
ExportUserLogRecordDTO
();
dto
.
setNickname
(
record
.
getNickname
());
dto
.
setNickname
(
record
.
getNickname
());
dto
.
setDescription
(
record
.
getDescription
());
dto
.
setDescription
(
record
.
getDescription
());
...
...
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