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
4dbdcb0c
Commit
4dbdcb0c
authored
Jan 06, 2020
by
朱亚洁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixbug1019123
parent
302af1fc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
LinkRevertBizImpl.java
...m/pcloud/book/advertising/biz/impl/LinkRevertBizImpl.java
+9
-9
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/advertising/biz/impl/LinkRevertBizImpl.java
View file @
4dbdcb0c
...
...
@@ -116,8 +116,8 @@ public class LinkRevertBizImpl implements LinkRevertBiz {
//今日之前发送次数
List
<
Long
>
linkIds
=
list
.
stream
().
filter
(
s
->
s
.
getLink
()
!=
null
).
map
(
LinkRevertRecordDTO:
:
getId
).
distinct
().
collect
(
Collectors
.
toList
());
Map
<
Long
,
LinkRevertRecordDTO
>
sendCountMap
=
advertisingLinkSendDao
.
mapSendCount
(
linkIds
);
//今日发送次数
Map
<
String
,
Integer
>
sendCountTodayMap
=
wechatGroupConsr
.
getLinkSendCount
(
paramDTOS
);
//今日发送次数
,因耗时不统计今天的20200106bug1019123
//
Map<String, Integer> sendCountTodayMap = wechatGroupConsr.getLinkSendCount(paramDTOS);
for
(
LinkRevertRecordDTO
revertRecordDTO
:
list
)
{
AdvertisingBrandDTO
brandDTO
=
advertisingBrandDao
.
getBrandById
(
revertRecordDTO
.
getBrandId
());
revertRecordDTO
.
setBrandName
(
null
==
brandDTO
?
""
:
brandDTO
.
getBrandName
());
...
...
@@ -128,9 +128,9 @@ public class LinkRevertBizImpl implements LinkRevertBiz {
if
(!
MapUtils
.
isEmpty
(
sendCountMap
)
&&
sendCountMap
.
containsKey
(
revertRecordDTO
.
getId
()))
{
sendCount
=
sendCountMap
.
get
(
revertRecordDTO
.
getId
()).
getSendCount
();
}
if
(!
MapUtils
.
isEmpty
(
sendCountTodayMap
)
&&
sendCountTodayMap
.
containsKey
(
revertRecordDTO
.
getShortLink
()))
{
sendCount
=
sendCount
+
sendCountTodayMap
.
get
(
revertRecordDTO
.
getShortLink
());
}
//
if (!MapUtils.isEmpty(sendCountTodayMap) && sendCountTodayMap.containsKey(revertRecordDTO.getShortLink())) {
//
sendCount = sendCount + sendCountTodayMap.get(revertRecordDTO.getShortLink());
//
}
revertRecordDTO
.
setSendCount
(
sendCount
);
}
return
pageBean
;
...
...
@@ -161,7 +161,7 @@ public class LinkRevertBizImpl implements LinkRevertBiz {
List
<
Long
>
linkIds
=
list
.
stream
().
filter
(
s
->
s
.
getLink
()
!=
null
).
map
(
LinkRevertRecordDTO:
:
getId
).
distinct
().
collect
(
Collectors
.
toList
());
Map
<
Long
,
LinkRevertRecordDTO
>
sendCountMap
=
advertisingLinkSendDao
.
mapSendCount
(
linkIds
);
//今日发送次数
Map
<
String
,
Integer
>
sendCountTodayMap
=
wechatGroupConsr
.
getLinkSendCount
(
paramDTOS
);
//
Map<String, Integer> sendCountTodayMap = wechatGroupConsr.getLinkSendCount(paramDTOS);
for
(
int
i
=
0
,
size
=
list
.
size
();
i
<
size
;
i
++)
{
LinkRevertRecordDTO
revertRecordDTO
=
list
.
get
(
i
);
Object
[]
obj
=
new
Object
[
rowsName
.
length
];
...
...
@@ -174,9 +174,9 @@ public class LinkRevertBizImpl implements LinkRevertBiz {
if
(!
MapUtils
.
isEmpty
(
sendCountMap
)
&&
sendCountMap
.
containsKey
(
revertRecordDTO
.
getId
()))
{
sendCount
=
sendCountMap
.
get
(
revertRecordDTO
.
getId
()).
getSendCount
();
}
if
(!
MapUtils
.
isEmpty
(
sendCountTodayMap
)
&&
sendCountTodayMap
.
containsKey
(
revertRecordDTO
.
getShortLink
()))
{
sendCount
=
sendCount
+
sendCountTodayMap
.
get
(
revertRecordDTO
.
getShortLink
());
}
//
if (!MapUtils.isEmpty(sendCountTodayMap) && sendCountTodayMap.containsKey(revertRecordDTO.getShortLink())) {
//
sendCount = sendCount + sendCountTodayMap.get(revertRecordDTO.getShortLink());
//
}
obj
[
4
]
=
sendCount
;
LinkRevertRecordDTO
clickStatistic
=
advertisingLinkClickDao
.
getCountByLink
(
revertRecordDTO
.
getShortLink
());
obj
[
5
]
=
null
==
clickStatistic
?
0
:
clickStatistic
.
getClickCount
();
...
...
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