Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
midjourney-proxy
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
徐少华
midjourney-proxy
Commits
51fa150e
Commit
51fa150e
authored
Aug 27, 2020
by
吴博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: [none] 新增导出接口
parent
0c154d13
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
AppletNewsServeBizImpl.java
...m/pcloud/book/applet/biz/impl/AppletNewsServeBizImpl.java
+5
-3
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/applet/biz/impl/AppletNewsServeBizImpl.java
View file @
51fa150e
...
...
@@ -11,6 +11,7 @@ import com.pcloud.common.core.aspect.ParamLog;
import
com.pcloud.common.page.PageBeanNew
;
import
com.pcloud.common.page.PageParam
;
import
com.pcloud.common.exceptions.BizException
;
import
com.pcloud.common.utils.DateUtils
;
import
com.pcloud.common.utils.ListUtils
;
import
com.pcloud.common.utils.NumberUtil
;
import
org.slf4j.Logger
;
...
...
@@ -89,25 +90,26 @@ public class AppletNewsServeBizImpl implements AppletNewsServeBiz {
public
Map
<
String
,
Object
>
exportClickCountExcel
(
Integer
count
,
String
date
,
Integer
sourceType
)
{
List
<
ExportClickDTO
>
exportClickDTOS
=
new
ArrayList
<>();
String
excelUrl
=
null
;
Date
date4Query
=
DateUtils
.
getDateByStr
(
date
);
Map
<
String
,
Object
>
result
=
new
HashMap
<>();
SimpleDateFormat
simpleDateFormat
=
new
SimpleDateFormat
(
"yyyyMMdd"
);
if
(
Objects
.
equals
(
SourceTypeEnum
.
NEWS
.
value
,
sourceType
))
{
exportClickDTOS
=
appletLinkClickDao
.
getNews
(
count
,
date
);
String
fileName
=
"资讯点击量top50-研发-"
+
simpleDateFormat
.
format
(
new
Date
()
);
String
fileName
=
"资讯点击量top50-研发-"
+
simpleDateFormat
.
format
(
date4Query
);
excelUrl
=
getExcelUrl4News
(
exportClickDTOS
,
fileName
);
result
.
put
(
"fileUrl"
,
excelUrl
);
result
.
put
(
"fileName"
,
fileName
);
return
result
;
}
else
if
(
Objects
.
equals
(
SourceTypeEnum
.
THIRD_GROUP
.
value
,
sourceType
))
{
exportClickDTOS
=
appletLinkClickDao
.
getThirdGroup
(
count
,
date
);
String
fileName
=
"第三方群点击量top50-研发-"
+
simpleDateFormat
.
format
(
new
Date
()
);
String
fileName
=
"第三方群点击量top50-研发-"
+
simpleDateFormat
.
format
(
date4Query
);
excelUrl
=
getExcelUrl4Group
(
exportClickDTOS
,
fileName
);
result
.
put
(
"fileUrl"
,
excelUrl
);
result
.
put
(
"fileName"
,
fileName
);
return
result
;
}
else
if
(
Objects
.
equals
(
SourceTypeEnum
.
NORMAL_GROUP
.
value
,
sourceType
))
{
exportClickDTOS
=
appletLinkClickDao
.
getNormalGroup
(
count
,
date
);
String
fileName
=
"群分类点击量top50-研发-"
+
simpleDateFormat
.
format
(
new
Date
()
);
String
fileName
=
"群分类点击量top50-研发-"
+
simpleDateFormat
.
format
(
date4Query
);
excelUrl
=
getExcelUrl4Group
(
exportClickDTOS
,
fileName
);
result
.
put
(
"fileUrl"
,
excelUrl
);
result
.
put
(
"fileName"
,
fileName
);
...
...
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