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
682cb7f0
Commit
682cb7f0
authored
Jan 20, 2025
by
梅存智
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
活动上架取消判断是否添加了计划
parent
9078abb2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
cloud-training-project-service/src/main/java/com/yizhi/training/application/controller/TrainingProjectController.java
+3
-1
No files found.
cloud-training-project-service/src/main/java/com/yizhi/training/application/controller/TrainingProjectController.java
View file @
682cb7f0
...
...
@@ -126,6 +126,7 @@ public class TrainingProjectController {
@PostMapping
(
value
=
"/up"
)
public
Integer
up
(
@RequestBody
Map
<
String
,
Long
>
map
){
Long
id
=
map
.
get
(
"id"
);
/*//活动不是必添加项目,注释2025-1-20
// 检查是否有学习活动
TpPlanActivity activity = new TpPlanActivity();
activity.setTrainingProjectId(id);
...
...
@@ -134,7 +135,8 @@ public class TrainingProjectController {
if (tpPlanActivityService.selectCount(new EntityWrapper<>(activity)) < 1) {
LOGGER.error("没有添加学习活动,不能上架!");
return -1;
}
}*/
TrainingProject
trainingProject
=
trainingProjectService
.
selectById
(
id
);
if
(
trainingProject
.
getStatus
()
==
0
||
trainingProject
.
getStatus
()
==
2
)
{
trainingProject
.
setStatus
(
1
);
...
...
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