|
@@ -1,5 +1,6 @@
|
|
|
package com.ym.mec.web.controller;
|
|
|
|
|
|
+import com.ym.mec.biz.dal.dto.ActivityStudentAdjustDto;
|
|
|
import com.ym.mec.biz.dal.page.ActivityStudentQueryInfo;
|
|
|
import com.ym.mec.biz.service.ActivityUserMapperService;
|
|
|
import com.ym.mec.common.controller.BaseController;
|
|
@@ -7,9 +8,13 @@ import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
@Api(tags = "学员活动排课记录服务")
|
|
|
@RequestMapping("activityUserMapper")
|
|
|
@RestController
|
|
@@ -18,6 +23,20 @@ public class ActivityUserMapperController extends BaseController {
|
|
|
@Autowired
|
|
|
private ActivityUserMapperService activityUserMapperService;
|
|
|
|
|
|
+ @ApiOperation(value = "添加活动排课资格")
|
|
|
+ @PostMapping("/add")
|
|
|
+ @PreAuthorize("@pcs.hasPermissions('activityUserMapper/add')")
|
|
|
+ public Object add(@RequestBody List<ActivityStudentAdjustDto> ActivityStudentAdjustDtos){
|
|
|
+ return succeed(activityUserMapperService.add(ActivityStudentAdjustDtos));
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value = "取消活动排课资格")
|
|
|
+ @RequestMapping("/cut")
|
|
|
+ @PreAuthorize("@pcs.hasPermissions('activityUserMapper/cut')")
|
|
|
+ public Object cut(Integer activityUserMapperId,String memo){
|
|
|
+ return succeed(activityUserMapperService.cut(activityUserMapperId,memo));
|
|
|
+ }
|
|
|
+
|
|
|
@ApiOperation(value = "获取学员活动排课资格列表")
|
|
|
@RequestMapping("/queryActivityUserMapper")
|
|
|
@PreAuthorize("@pcs.hasPermissions('activityUserMapper/queryActivityUserMapper')")
|