Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
training-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
training-project
Commits
838103c7
Commit
838103c7
authored
Apr 24, 2025
by
阳浪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
4.24bug优化
parent
3d3997c6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
cloud-training-project-service/src/main/java/com/yizhi/training/application/mapper/TpViewRecordMapper.java
+6
-6
No files found.
cloud-training-project-service/src/main/java/com/yizhi/training/application/mapper/TpViewRecordMapper.java
View file @
838103c7
...
...
@@ -26,7 +26,7 @@ public interface TpViewRecordMapper extends BaseMapper<TpViewRecord> {
"where tb.training_project_id = #{trainingProject.id} "
+
"and tb.company_id = #{trainingProject.companyId} "
+
"and tb.site_id = #{trainingProject.siteId} "
+
"group by tb.account_id) tb"
)
"group by tb.account_id
,tb.id
) tb"
)
Integer
getViewNum
(
@Param
(
"trainingProject"
)
TrainingProject
trainingProject
);
/**
...
...
@@ -43,7 +43,7 @@ public interface TpViewRecordMapper extends BaseMapper<TpViewRecord> {
"group by tb.account_id) tb\n"
+
"left join tp_authorization_range t on tb.account_id=t.relation_id \n"
+
"where t.biz_id = #{trainingProject.id} \n"
+
"GROUP BY tb.account_id
\n"
+
"GROUP BY tb.account_id
,tb.org_id\n"
+
"UNION ALL \n"
+
"select tb.account_id\n"
+
"from (\n"
+
...
...
@@ -55,7 +55,7 @@ public interface TpViewRecordMapper extends BaseMapper<TpViewRecord> {
"group by tb.account_id) tb\n"
+
"left join tp_authorization_range t on tb.org_id=t.relation_id \n"
+
"where t.biz_id = #{trainingProject.id}\n"
+
"GROUP BY tb.account_id) a"
)
"GROUP BY tb.account_id
,tb.org_id
) a"
)
Integer
getViewNumRange
(
@Param
(
"trainingProject"
)
TrainingProject
trainingProject
);
/**
...
...
@@ -70,7 +70,7 @@ public interface TpViewRecordMapper extends BaseMapper<TpViewRecord> {
"where tb.training_project_id = #{trainingProject.id} "
+
"and tb.company_id = #{trainingProject.companyId} "
+
"and tb.site_id = #{trainingProject.siteId} "
+
"group by tb.account_id) tb"
)
"group by tb.account_id
,tb.id
) tb"
)
Integer
getEnrollViewNum
(
@Param
(
"trainingProject"
)
TrainingProject
trainingProject
);
/**
...
...
@@ -89,7 +89,7 @@ public interface TpViewRecordMapper extends BaseMapper<TpViewRecord> {
"group by tb.account_id) tb\n"
+
"left join tp_authorization_range t on tb.account_id=t.relation_id \n"
+
"where t.biz_id = #{trainingProject.id} \n"
+
"GROUP BY tb.account_id
\n"
+
"GROUP BY tb.account_id
,tb.org_id\n"
+
"UNION ALL \n"
+
"select tb.account_id\n"
+
"from (\n"
+
...
...
@@ -101,7 +101,7 @@ public interface TpViewRecordMapper extends BaseMapper<TpViewRecord> {
"group by tb.account_id) tb\n"
+
"left join tp_authorization_range t on tb.org_id=t.relation_id \n"
+
"where t.biz_id = #{trainingProject.id}\n"
+
"GROUP BY tb.account_id) a"
)
"GROUP BY tb.account_id
,tb.org_id
) a"
)
Integer
getEnrollViewNumRange
(
@Param
(
"trainingProject"
)
TrainingProject
trainingProject
);
}
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