Ver código fonte

feat:产品协议生成接口

Joburgess 4 anos atrás
pai
commit
eeb4b6562f

+ 11 - 3
mec-web/src/main/java/com/ym/mec/web/controller/ContractsController.java

@@ -2,14 +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;
@@ -78,4 +78,12 @@ public class ContractsController extends BaseController {
 		return succeed(contractService.queryPracticeCoursesContract(sysUser.getId(), courseSectionNum, startDate, endDate, fee));
 	}
 
+	@PostMapping("transferProduceContract")
+	public HttpResponseResult transferProduceContract(@RequestBody List<Integer> userIds){
+		for (Integer userId : userIds) {
+			contractService.transferProduceContract(userId,null);
+		}
+		return succeed();
+	}
+
 }