Parcourir la source

小小训练营逻辑调整

zouxuan il y a 2 ans
Parent
commit
f54456d097

+ 2 - 2
mec-biz/src/main/java/com/ym/mec/biz/service/impl/TempLittleArtistTrainingCampServiceImpl.java

@@ -112,11 +112,11 @@ public class TempLittleArtistTrainingCampServiceImpl extends ServiceImpl<TempLit
         TempLittleArtistTrainingCamp entity = Optional.ofNullable(dto.getId())
                 .map(this::getById)
                 .orElseThrow(() -> new BizException("训练营不存在"));
-        int count = tempLittleArtistTrainingCampUserRelationService.count(Wrappers.<TempLittleArtistTrainingCampUserRelation>lambdaQuery()
+        /*int count = tempLittleArtistTrainingCampUserRelationService.count(Wrappers.<TempLittleArtistTrainingCampUserRelation>lambdaQuery()
                 .eq(TempLittleArtistTrainingCampUserRelation::getActivityId, entity.getId()));
         if (count > 0) {
             throw new BizException("训练营已有学生报名,无法修改");
-        }
+        }*/
         entity.setName(dto.getName());
         entity.setApplyStartDate(dto.getApplyStartDate());
         entity.setApplyEndDate(dto.getApplyEndDate());

+ 2 - 2
mec-web/src/main/java/com/ym/mec/web/controller/TempLittleArtistTrainingCampController.java

@@ -51,14 +51,14 @@ public class TempLittleArtistTrainingCampController extends BaseController {
         return succeed();
     }
 
-    @ApiOperation("修改机构启用停用状态")
+    @ApiOperation("修改训练营启用停用状态")
     @GetMapping(value = "/delete/{id}")
     public HttpResponseResult<Object> opsState(@ApiParam(value = "训练营ID", required = true) @PathVariable("id") Integer id) {
         tempLittleArtistTrainingCampService.delete(id);
         return succeed();
     }
 
-    @ApiOperation("修改机构启用停用状态")
+    @ApiOperation("修改训练营启用停用状态")
     @GetMapping(value = "/enable/{id}")
     public HttpResponseResult<Object> enable(@ApiParam(value = "训练营ID", required = true) @PathVariable("id") Integer id) {
         TempLittleArtistTrainingCamp byId = tempLittleArtistTrainingCampService.getById(id);