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
da39c955
Commit
da39c955
authored
Sep 05, 2025
by
“Kongxiangkun”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
评论,收藏,点赞 埋点面板修改
parent
5963a198
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
13 deletions
+8
-13
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
+7
-12
No files found.
cloud-site-service/src/main/java/com/yizhi/site/application/mapper/EventTrackMapper.java
View file @
da39c955
...
...
@@ -30,7 +30,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
<
Stri
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
<
Lo
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
<
String
>
subNameList
,
@Param
(
"siteId"
)
Long
siteId
,
...
...
cloud-site-service/src/main/java/com/yizhi/site/application/service/impl/EventTrackServiceImpl.java
View file @
da39c955
...
...
@@ -399,13 +399,12 @@ public class EventTrackServiceImpl extends ServiceImpl<EventTrackMapper, EventTr
return
null
;
}
private
List
<
EventTrackTypeNumVo
>
queryNumByType
(
String
date
,
Boolean
isPre
,
List
<
Integer
>
types
,
String
subIds
)
{
logger
.
info
(
"埋点统计行为统计入参date:{},isPre:{}, types:{},
subName:{}"
,
date
,
isPre
,
types
,
subIds
);
private
List
<
EventTrackTypeNumVo
>
queryNumByType
(
String
date
,
Boolean
isPre
,
List
<
Integer
>
types
,
String
parentId
)
{
logger
.
info
(
"埋点统计行为统计入参date:{},isPre:{}, types:{},
parentId:{}"
,
date
,
isPre
,
types
,
parentId
);
if
(
ObjectUtils
.
isEmpty
(
date
)){
date
=
"3"
;
}
String
dateString
=
getDateString
(
date
);
Long
id
=
null
;
RequestContext
context
=
ContextHolder
.
get
();
// if(!ObjectUtils.isEmpty(subName)) {
// String key = "event_track_type";
...
...
@@ -418,16 +417,12 @@ public class EventTrackServiceImpl extends ServiceImpl<EventTrackMapper, EventTr
// }
// }
// }
List
<
String
>
subNameList
=
null
;
// List<DataClassification> classificationList = null;
// if(id!=null) {
// classificationList = dataClassificationService.getSon(id);
// if(CollectionUtil.isNotEmpty(classificationList)){
// subNameList = classificationList.stream().map(DataClassification::getName).collect(Collectors.toList());
// }
// }
List
<
Long
>
subIdList
=
null
;
List
<
DataClassification
>
classificationList
=
dataClassificationService
.
getSon
(
Long
.
valueOf
(
parentId
));
if
(
CollectionUtil
.
isNotEmpty
(
classificationList
)){
subIdList
=
classificationList
.
stream
().
map
(
DataClassification:
:
getId
).
collect
(
Collectors
.
toList
());
}
List
<
EventTrackTypeNumVo
>
eventTrackTypeNumVoList
=
null
;
List
<
String
>
subIdList
=
Arrays
.
asList
(
subIds
.
split
(
","
));
//判断是否获取阅读量
// if(types.get(0).equals(6)){
//阅读量
...
...
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