浏览代码

feat:产品协议

Joburgess 4 年之前
父节点
当前提交
1aa59dba49
共有 1 个文件被更改,包括 7 次插入6 次删除
  1. 7 6
      mec-web/src/main/java/com/ym/mec/web/controller/ContractsController.java

+ 7 - 6
mec-web/src/main/java/com/ym/mec/web/controller/ContractsController.java

@@ -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();
 	}
 }