Browse Source

活动排课

zouxuan 4 years ago
parent
commit
730c1a91f5

+ 4 - 6
mec-teacher/src/main/java/com/ym/mec/teacher/controller/TeacherPracticeGroupController.java

@@ -16,10 +16,7 @@ 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 org.springframework.web.bind.annotation.*;
 
 import java.util.Map;
 import java.util.Objects;
@@ -52,13 +49,14 @@ public class TeacherPracticeGroupController extends BaseController {
 	}
 
 	@ApiOperation("课酬总费用")
-	@PostMapping("/getPracticeGroupCostCount")
-	public Object getPracticeGroupCostCount(@RequestBody PracticeGroupApplyBaseInfoDto practice){
+	@GetMapping("/getPracticeGroupCostCount")
+	public Object getPracticeGroupCostCount(){
 		SysUser sysUser = sysUserFeignService.queryUserInfo();
 		if (sysUser == null) {
 			return failed("用户信息获取失败");
 		}
 		Teacher teacher = teacherDao.get(sysUser.getId());
+		PracticeGroupApplyBaseInfoDto practice = new PracticeGroupApplyBaseInfoDto();
 		practice.setUserId(sysUser.getId());
 		practice.setOrganId(teacher.getOrganId());
 		Map results = practiceGroupService.countPracticeGroupPredictFee(practice,practice.getUserId(), null);