Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
site-project
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hqzhdj
site-project
Commits
8b4ffdec
Commit
8b4ffdec
authored
Sep 05, 2025
by
“Kongxiangkun”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加小程序首页打开埋点
parent
b830f2a2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
cloud-site-service/src/main/java/com/yizhi/site/application/mapper/EventTrackMapper.java
+1
-1
cloud-site-service/src/main/java/com/yizhi/site/application/service/impl/EventTrackServiceImpl.java
+4
-2
No files found.
cloud-site-service/src/main/java/com/yizhi/site/application/mapper/EventTrackMapper.java
View file @
8b4ffdec
...
...
@@ -27,7 +27,7 @@ public interface EventTrackMapper extends BaseMapper<EventTrack> {
DayNumVo
getNumByType
(
@Param
(
"date"
)
String
date
,
@Param
(
"dateString"
)
String
dateString
,
@Param
(
"types"
)
List
<
Integer
>
types
,
@Param
(
"siteId"
)
Long
siteId
,
@Param
(
"weekStartDate"
)
String
weekStartDate
,
@Param
(
"weekEndDate"
)
String
weekEndDate
);
DayNumVo
getTgNumByType
(
@Param
(
"date"
)
String
date
,
@Param
(
"dateString"
)
String
dateString
,
@Param
(
"siteId"
)
Long
siteId
);
List
<
EventTrackTypeNumVo
>
queryNumByType
(
@Param
(
"deptId"
)
Long
deptId
,
@Param
(
"date"
)
String
date
,
@Param
(
"dateString"
)
String
dateString
,
@Param
(
"types"
)
List
<
Integer
>
types
,
@Param
(
"subNameList"
)
List
<
Lo
ng
>
subNameList
,
@Param
(
"siteId"
)
Long
siteId
,
List
<
EventTrackTypeNumVo
>
queryNumByType
(
@Param
(
"deptId"
)
Long
deptId
,
@Param
(
"date"
)
String
date
,
@Param
(
"dateString"
)
String
dateString
,
@Param
(
"types"
)
List
<
Integer
>
types
,
@Param
(
"subNameList"
)
List
<
Stri
ng
>
subNameList
,
@Param
(
"siteId"
)
Long
siteId
,
@Param
(
"isPre"
)
Boolean
isPre
);
List
<
EventTrackTypeNumVo
>
queryNumByTypeInformation
(
@Param
(
"deptId"
)
Long
deptId
,
@Param
(
"date"
)
String
date
,
@Param
(
"dateString"
)
String
dateString
,
@Param
(
"types"
)
List
<
Integer
>
types
,
@Param
(
"subNameList"
)
List
<
Long
>
subNameList
,
@Param
(
"siteId"
)
Long
siteId
,
...
...
cloud-site-service/src/main/java/com/yizhi/site/application/service/impl/EventTrackServiceImpl.java
View file @
8b4ffdec
...
...
@@ -416,19 +416,21 @@ public class EventTrackServiceImpl extends ServiceImpl<EventTrackMapper, EventTr
// }
// }
List
<
Long
>
subIdList
=
null
;
List
<
String
>
subNameList
=
null
;
if
(
StringUtils
.
isNotBlank
(
parentId
))
{
List
<
DataClassification
>
classificationList
=
dataClassificationService
.
getSon
(
Long
.
valueOf
(
parentId
));
if
(
CollectionUtil
.
isNotEmpty
(
classificationList
))
{
subIdList
=
classificationList
.
stream
().
map
(
DataClassification:
:
getId
).
collect
(
Collectors
.
toList
());
subNameList
=
classificationList
.
stream
().
map
(
DataClassification:
:
getName
).
collect
(
Collectors
.
toList
());
}
}
List
<
EventTrackTypeNumVo
>
eventTrackTypeNumVoList
=
null
;
logger
.
info
(
"埋点统计行为统计入参date:{},isPre:{}, types:{}, dateString:{}, siteId:{}, subIdList:{}
"
,
date
,
isPre
,
types
,
dateString
,
context
.
getSiteId
(),
subId
List
);
logger
.
info
(
"埋点统计行为统计入参date:{},isPre:{}, types:{}, dateString:{}, siteId:{}, subIdList:{}
, subNameList:{}"
,
date
,
isPre
,
types
,
dateString
,
context
.
getSiteId
(),
subIdList
,
subName
List
);
//判断是否获取阅读量
if
(
types
.
get
(
0
).
equals
(
6
)){
eventTrackTypeNumVoList
=
this
.
baseMapper
.
queryNumByTypeInformation
(
null
,
date
,
dateString
,
types
,
subIdList
,
context
.
getSiteId
(),
isPre
);
}
else
{
eventTrackTypeNumVoList
=
this
.
baseMapper
.
queryNumByType
(
null
,
date
,
dateString
,
types
,
sub
Id
List
,
context
.
getSiteId
(),
isPre
);
eventTrackTypeNumVoList
=
this
.
baseMapper
.
queryNumByType
(
null
,
date
,
dateString
,
types
,
sub
Name
List
,
context
.
getSiteId
(),
isPre
);
logger
.
info
(
"埋点统计行为统计查询结果:{}"
,
JSONUtil
.
toJsonStr
(
eventTrackTypeNumVoList
));
}
// if(CollectionUtil.isNotEmpty(subNameList)){
...
...
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