Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
marketing
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
3
Merge Requests
3
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
dingjy
marketing
Commits
c3ff21a9
Commit
c3ff21a9
authored
Apr 09, 2024
by
宋新宇
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '7-短剧app关键行为优化' into 'release_20240408_01'
dy短剧关键行为优化 See merge request
!39
parents
a9ab4812
c2b0d563
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
DyvideoBehaviorFlow.java
...wby/marketing/att/dyvideo/handle/DyvideoBehaviorFlow.java
+7
-2
No files found.
src/main/java/com/lwby/marketing/att/dyvideo/handle/DyvideoBehaviorFlow.java
View file @
c3ff21a9
...
...
@@ -117,6 +117,11 @@ public class DyvideoBehaviorFlow extends NodeSwitchFlow<StoryNovelAction> {
Date
date
=
new
Date
();
Map
<
String
,
Integer
>
resultCountMap
=
null
;
Number
behavoirType
=
BehavoirType
.
PECPMMODELCOUNT
.
getBehavoirType
(
appChannel
);
Integer
pecpmModel
=
null
;
if
(
behavoirType
!=
null
)
{
pecpmModel
=
behavoirType
.
intValue
();
}
if
(
now
.
toLocalTime
().
isBefore
(
six
))
{
//当天6点之前,查两天,先查昨天的ecpm指标
Calendar
calendar
=
Calendar
.
getInstance
();
// 获取日历对象
...
...
@@ -124,7 +129,7 @@ public class DyvideoBehaviorFlow extends NodeSwitchFlow<StoryNovelAction> {
calendar
.
add
(
Calendar
.
DAY_OF_MONTH
,
-
1
);
// 将时间减去一天
Date
day
=
calendar
.
getTime
();
resultCountMap
=
up
.
getResultCountList
(
day
,
openId
,
accessToken
,
tvcCount
,
motivateCount
,
pecpmCount
,
BehavoirType
.
PECPMMODELCOUNT
.
getBehavoirType
(
appChannel
).
intValue
()
,
userId
,
tokenDy
,
dyMarketPlatformAppIdList
,
env
);
pecpmModel
,
userId
,
tokenDy
,
dyMarketPlatformAppIdList
,
env
);
if
(
resultCountMap
!=
null
&&
resultCountMap
.
size
()
!=
0
)
{
tvcCount
=
resultCountMap
.
get
(
"tvc"
);
if
(
tvcCount
!=
null
)
{
...
...
@@ -136,7 +141,7 @@ public class DyvideoBehaviorFlow extends NodeSwitchFlow<StoryNovelAction> {
}
//查询今天的ecpm指标
resultCountMap
=
up
.
getResultCountList
(
date
,
openId
,
accessToken
,
tvcCount
,
motivateCount
,
pecpmCount
,
BehavoirType
.
PECPMMODELCOUNT
.
getBehavoirType
(
appChannel
).
intValue
()
,
userId
,
tokenDy
,
dyMarketPlatformAppIdList
,
env
);
pecpmModel
,
userId
,
tokenDy
,
dyMarketPlatformAppIdList
,
env
);
if
(
resultCountMap
!=
null
&&
resultCountMap
.
size
()
!=
0
)
{
tvcCount
=
resultCountMap
.
get
(
"tvc"
);
if
(
tvcCount
!=
null
)
{
...
...
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