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
3d3997c6
Commit
3d3997c6
authored
Apr 22, 2025
by
阳浪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
4.21bug优化
parent
a1741649
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
13 deletions
+15
-13
cloud-training-project-service/src/main/java/com/yizhi/training/application/service/impl/TpPlanActivityServiceImpl.java
+15
-13
No files found.
cloud-training-project-service/src/main/java/com/yizhi/training/application/service/impl/TpPlanActivityServiceImpl.java
View file @
3d3997c6
...
...
@@ -186,19 +186,21 @@ public class TpPlanActivityServiceImpl extends ServiceImpl<TpPlanActivityMapper,
if
(
null
!=
tpPlanActivityEW
)
{
// 查出TPplanId 下的 活动
tpPlanActivityEW
.
setDeleted
(
ProjectConstant
.
DELETED_NO
);
tpPlanActivityEW
.
setTpPlanId
(
tpPlanActivity
.
getTpPlanId
());
ew
=
new
EntityWrapper
<>(
tpPlanActivityEW
);
ew
.
orderBy
(
"sort"
,
true
);
List
<
TpPlanActivity
>
activities
=
tpPlanActivityMapper
.
selectList
(
ew
);
if
(!
CollectionUtils
.
isEmpty
(
activities
))
{
// 更新活动排序
TpPlanActivity
activity
=
new
TpPlanActivity
();
int
index
=
0
;
for
(
TpPlanActivity
a
:
activities
)
{
index
++;
activity
.
setId
(
a
.
getId
());
activity
.
setSort
(
index
);
activity
.
updateById
();
if
(
tpPlanActivity
.
getTpPlanId
()!=
null
)
{
tpPlanActivityEW
.
setTpPlanId
(
tpPlanActivity
.
getTpPlanId
());
ew
=
new
EntityWrapper
<>(
tpPlanActivityEW
);
ew
.
orderBy
(
"sort"
,
true
);
List
<
TpPlanActivity
>
activities
=
tpPlanActivityMapper
.
selectList
(
ew
);
if
(!
CollectionUtils
.
isEmpty
(
activities
))
{
// 更新活动排序
TpPlanActivity
activity
=
new
TpPlanActivity
();
int
index
=
0
;
for
(
TpPlanActivity
a
:
activities
)
{
index
++;
activity
.
setId
(
a
.
getId
());
activity
.
setSort
(
index
);
activity
.
updateById
();
}
}
}
}
...
...
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