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
b5305922
Commit
b5305922
authored
Sep 08, 2025
by
“Kongxiangkun”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工作台互动分析优化
parent
b22cc161
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
4 deletions
+16
-4
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
+12
-3
cloud-site-service/src/main/resources/mapper/EventTrackMapper.xml
+3
-0
No files found.
cloud-site-service/src/main/java/com/yizhi/site/application/mapper/EventTrackMapper.java
View file @
b5305922
...
@@ -28,7 +28,7 @@ public interface EventTrackMapper extends BaseMapper<EventTrack> {
...
@@ -28,7 +28,7 @@ public interface EventTrackMapper extends BaseMapper<EventTrack> {
DayNumVo
getTgNumByType
(
@Param
(
"date"
)
String
date
,
@Param
(
"dateString"
)
String
dateString
,
@Param
(
"siteId"
)
Long
siteId
);
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
<
String
>
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
<
String
>
subNameList
,
@Param
(
"siteId"
)
Long
siteId
,
@Param
(
"isPre"
)
Boolean
isPre
);
@Param
(
"isPre"
)
Boolean
isPre
,
@Param
(
"remark2"
)
String
remark2
);
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
,
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
,
@Param
(
"isPre"
)
Boolean
isPre
);
@Param
(
"isPre"
)
Boolean
isPre
);
...
...
cloud-site-service/src/main/java/com/yizhi/site/application/service/impl/EventTrackServiceImpl.java
View file @
b5305922
...
@@ -94,10 +94,19 @@ public class EventTrackServiceImpl extends ServiceImpl<EventTrackMapper, EventTr
...
@@ -94,10 +94,19 @@ public class EventTrackServiceImpl extends ServiceImpl<EventTrackMapper, EventTr
eventTrack
.
setDeptId
(
authzUserGroupVo
.
getId
());
eventTrack
.
setDeptId
(
authzUserGroupVo
.
getId
());
eventTrack
.
setDeptName
(
authzUserGroupVo
.
getName
());
eventTrack
.
setDeptName
(
authzUserGroupVo
.
getName
());
}
}
String
tp
;
if
(
type
.
startsWith
(
"event_tp_comment_"
))
{
//保存评论业务类型
eventTrack
.
setRemark2
(
type
.
substring
(
type
.
lastIndexOf
(
"_"
)
+
1
,
type
.
length
()));
tp
=
type
.
substring
(
0
,
type
.
lastIndexOf
(
"_"
));
}
else
{
tp
=
type
;
}
String
key
=
"event_track_type"
;
String
key
=
"event_track_type"
;
List
<
Dictionary
>
dictionaryList
=
dictionaryFeignClients
.
listChildDictionary
(
key
,
false
,
1
);
List
<
Dictionary
>
dictionaryList
=
dictionaryFeignClients
.
listChildDictionary
(
key
,
false
,
1
);
if
(
CollUtil
.
isNotEmpty
(
dictionaryList
)){
if
(
CollUtil
.
isNotEmpty
(
dictionaryList
)){
Optional
<
Dictionary
>
optional
=
dictionaryList
.
stream
().
filter
(
d
->
Objects
.
equals
(
d
.
getCode
(),
t
ype
)).
findFirst
();
Optional
<
Dictionary
>
optional
=
dictionaryList
.
stream
().
filter
(
d
->
Objects
.
equals
(
d
.
getCode
(),
t
p
)).
findFirst
();
if
(
optional
!=
null
&&
optional
.
isPresent
()){
if
(
optional
!=
null
&&
optional
.
isPresent
()){
Dictionary
dictionary
=
optional
.
get
();
Dictionary
dictionary
=
optional
.
get
();
eventTrack
.
setSubType
(
dictionary
.
getCnName
());
eventTrack
.
setSubType
(
dictionary
.
getCnName
());
...
@@ -430,7 +439,7 @@ public class EventTrackServiceImpl extends ServiceImpl<EventTrackMapper, EventTr
...
@@ -430,7 +439,7 @@ public class EventTrackServiceImpl extends ServiceImpl<EventTrackMapper, EventTr
if
(
types
.
size
()
==
1
){
if
(
types
.
size
()
==
1
){
eventTrackTypeNumVoList
=
this
.
baseMapper
.
queryNumByTypeInformation
(
null
,
date
,
dateString
,
types
,
subIdList
,
context
.
getSiteId
(),
isPre
);
eventTrackTypeNumVoList
=
this
.
baseMapper
.
queryNumByTypeInformation
(
null
,
date
,
dateString
,
types
,
subIdList
,
context
.
getSiteId
(),
isPre
);
}
else
{
}
else
{
eventTrackTypeNumVoList
=
this
.
baseMapper
.
queryNumByType
(
null
,
date
,
dateString
,
types
,
subNameList
,
context
.
getSiteId
(),
isPre
);
eventTrackTypeNumVoList
=
this
.
baseMapper
.
queryNumByType
(
null
,
date
,
dateString
,
types
,
subNameList
,
context
.
getSiteId
(),
isPre
,
null
);
}
}
logger
.
info
(
"埋点统计行为统计查询结果:{}"
,
JSONUtil
.
toJsonStr
(
eventTrackTypeNumVoList
));
logger
.
info
(
"埋点统计行为统计查询结果:{}"
,
JSONUtil
.
toJsonStr
(
eventTrackTypeNumVoList
));
if
(
CollectionUtil
.
isNotEmpty
(
subNameList
)){
if
(
CollectionUtil
.
isNotEmpty
(
subNameList
)){
...
@@ -499,7 +508,7 @@ public class EventTrackServiceImpl extends ServiceImpl<EventTrackMapper, EventTr
...
@@ -499,7 +508,7 @@ public class EventTrackServiceImpl extends ServiceImpl<EventTrackMapper, EventTr
if
(
CollUtil
.
isNotEmpty
(
eventTrackDeptNumVoList
)){
if
(
CollUtil
.
isNotEmpty
(
eventTrackDeptNumVoList
)){
String
finalDate
=
date
;
String
finalDate
=
date
;
eventTrackDeptNumVoList
.
stream
().
forEach
(
eventTrackDeptNumVo
->
{
eventTrackDeptNumVoList
.
stream
().
forEach
(
eventTrackDeptNumVo
->
{
List
<
EventTrackTypeNumVo
>
eventTrackTypeNumVoList
=
this
.
baseMapper
.
queryNumByType
(
eventTrackDeptNumVo
.
getDeptId
(),
finalDate
,
dateString
,
types
,
null
,
context
.
getSiteId
(),
false
);
List
<
EventTrackTypeNumVo
>
eventTrackTypeNumVoList
=
this
.
baseMapper
.
queryNumByType
(
eventTrackDeptNumVo
.
getDeptId
(),
finalDate
,
dateString
,
types
,
null
,
context
.
getSiteId
(),
false
,
"1"
);
if
(
CollectionUtil
.
isNotEmpty
(
eventTrackTypeNumVoList
)){
if
(
CollectionUtil
.
isNotEmpty
(
eventTrackTypeNumVoList
)){
List
<
EventTrackTypeNumVo
>
voList
=
Lists
.
newArrayList
();
List
<
EventTrackTypeNumVo
>
voList
=
Lists
.
newArrayList
();
eventTrackTypeNumVoList
.
stream
().
forEach
(
numVo
->{
eventTrackTypeNumVoList
.
stream
().
forEach
(
numVo
->{
...
...
cloud-site-service/src/main/resources/mapper/EventTrackMapper.xml
View file @
b5305922
...
@@ -60,6 +60,9 @@
...
@@ -60,6 +60,9 @@
<if
test=
"deptId!=null"
>
<if
test=
"deptId!=null"
>
and e.dept_id = #{deptId}
and e.dept_id = #{deptId}
</if>
</if>
<if
test=
"remark2!=null"
>
and e.remark2 = #{remark2}
</if>
group by e.type,e.sub_type
group by e.type,e.sub_type
order by e.type
order by e.type
</select>
</select>
...
...
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