|
@@ -2,15 +2,14 @@ package com.ym.mec.web.controller;
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
import java.util.Date;
|
|
|
+import java.util.List;
|
|
|
|
|
|
import com.ym.mec.common.entity.HttpResponseResult;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import com.ym.mec.auth.api.client.SysUserFeignService;
|
|
|
import com.ym.mec.auth.api.entity.SysUser;
|
|
@@ -79,9 +78,11 @@ public class ContractsController extends BaseController {
|
|
|
return succeed(contractService.queryPracticeCoursesContract(sysUser.getId(), courseSectionNum, startDate, endDate, fee));
|
|
|
}
|
|
|
|
|
|
- @GetMapping("transferProduceContract")
|
|
|
- public HttpResponseResult transferProduceContract(Integer userId,String musicGroupId){
|
|
|
- contractService.transferProduceContract(userId,musicGroupId);
|
|
|
+ @PostMapping("transferProduceContract")
|
|
|
+ public HttpResponseResult transferProduceContract(@RequestBody List<Integer> userIds){
|
|
|
+ for (Integer userId : userIds) {
|
|
|
+ contractService.transferProduceContract(userId,null);
|
|
|
+ }
|
|
|
return succeed();
|
|
|
}
|
|
|
}
|