|
@@ -58,6 +58,15 @@ public class TempLittleArtistTrainingCampController extends BaseController {
|
|
|
return succeed();
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation("修改机构启用停用状态")
|
|
|
+ @GetMapping(value = "/enable/{id}")
|
|
|
+ public HttpResponseResult<Object> enable(@ApiParam(value = "训练营ID", required = true) @PathVariable("id") Integer id) {
|
|
|
+ TempLittleArtistTrainingCamp byId = tempLittleArtistTrainingCampService.getById(id);
|
|
|
+ tempLittleArtistTrainingCampService.lambdaUpdate()
|
|
|
+ .eq(TempLittleArtistTrainingCamp::getId,id).set(TempLittleArtistTrainingCamp::getEnableFlag,!byId.getEnableFlag()).update();
|
|
|
+ return succeed();
|
|
|
+ }
|
|
|
+
|
|
|
@ApiImplicitParams({
|
|
|
@ApiImplicitParam(name = "name", dataType = "String", value = "训练营标题-模糊搜索"),
|
|
|
@ApiImplicitParam(name = "state", dataType = "String", value = "筹备中 READY,报名中 APPLY,未开始 NOT_START,进行中 ING,已结束 END"),
|