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
d0d6bc39
Commit
d0d6bc39
authored
May 16, 2025
by
梅存智
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
小程序首页日历显示
parent
db98d26b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
2 deletions
+23
-2
cloud-training-project-service/src/main/java/com/yizhi/training/application/mapper/TrainingProjectMapper.java
+9
-0
cloud-training-project-service/src/main/java/com/yizhi/training/application/mapper/TrainingProjectMapper.xml
+10
-0
cloud-training-project-service/src/main/java/com/yizhi/training/application/service/impl/TrainingProjectServiceImpl.java
+4
-2
No files found.
cloud-training-project-service/src/main/java/com/yizhi/training/application/mapper/TrainingProjectMapper.java
View file @
d0d6bc39
...
...
@@ -365,4 +365,13 @@ public interface TrainingProjectMapper extends BaseMapper<TrainingProject> {
* @return
*/
List
<
ActivityTypeVo
>
selectActivityType
(
@Param
(
"companyId"
)
Long
companyId
,
@Param
(
"siteId"
)
Long
siteId
);
/**
* 获取可见范围项目ID
* @param siteId
* @param orgId
* @param accountId
* @return
*/
List
<
Long
>
getVisiables
(
@Param
(
"siteId"
)
Long
siteId
,
@Param
(
"orgId"
)
Long
orgId
,
@Param
(
"accountId"
)
Long
accountId
);
}
cloud-training-project-service/src/main/java/com/yizhi/training/application/mapper/TrainingProjectMapper.xml
View file @
d0d6bc39
...
...
@@ -916,4 +916,14 @@
where a.company_id = #{companyId} AND a.site_id = #{siteId} AND a.deleted = 0
ORDER BY a.create_time,a.id
</select>
<select
id=
"getVisiables"
resultType=
"java.lang.Long"
>
SELECT biz_id
FROM tp_authorization_range
WHERE site_id=#{siteId} AND relation_id=#{orgId} AND type=1 AND deleted = 0
union
SELECT biz_id
FROM tp_authorization_range
WHERE site_id=#{siteId} AND relation_id=#{accountId} AND type=2 AND deleted = 0
</select>
</mapper>
cloud-training-project-service/src/main/java/com/yizhi/training/application/service/impl/TrainingProjectServiceImpl.java
View file @
d0d6bc39
...
...
@@ -1501,8 +1501,10 @@ public class TrainingProjectServiceImpl extends ServiceImpl<TrainingProjectMappe
RequestContext
context
=
ContextHolder
.
get
();
TrainingActivityVO
item
=
new
TrainingActivityVO
();
//目前只需要统计一天,调用以前的方法就行
List
<
TrainingProjectVo
>
trainingProjectVos
=
trainingProjectMapper
.
apiPageListCount
(
null
,
null
,
context
.
getSiteId
(),
null
,
bizType
);
//根据活动的可见范围显示日历
//获取可见范围
List
<
Long
>
visiableTpIds
=
trainingProjectMapper
.
getVisiables
(
context
.
getSiteId
(),
context
.
getOrgId
(),
context
.
getAccountId
());
List
<
TrainingProjectVo
>
trainingProjectVos
=
trainingProjectMapper
.
apiPageListCount
(
visiableTpIds
,
null
,
context
.
getSiteId
(),
null
,
bizType
);
if
(!
CollectionUtils
.
isEmpty
(
trainingProjectVos
)){
List
<
String
>
list
=
new
ArrayList
<
String
>(
1
);
trainingProjectVos
.
stream
().
forEach
(
trainingProjectVo
->
{
...
...
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