|
@@ -1,15 +1,5 @@
|
|
|
package com.ym.mec.student.controller;
|
|
|
|
|
|
-import java.math.BigDecimal;
|
|
|
-
|
|
|
-import com.ym.mec.auth.api.client.SysUserFeignService;
|
|
|
-import com.ym.mec.auth.api.entity.SysUser;
|
|
|
-import com.ym.mec.biz.dal.page.StudentPayLogQueryInfo;
|
|
|
-import com.ym.mec.biz.service.ClassGroupService;
|
|
|
-import com.ym.mec.biz.service.MusicGroupService;
|
|
|
-import com.ym.mec.common.controller.BaseController;
|
|
|
-import com.ym.mec.common.page.QueryInfo;
|
|
|
-
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
|
@@ -21,6 +11,14 @@ import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import com.ym.mec.auth.api.client.SysUserFeignService;
|
|
|
+import com.ym.mec.auth.api.entity.SysUser;
|
|
|
+import com.ym.mec.biz.dal.page.StudentPayLogQueryInfo;
|
|
|
+import com.ym.mec.biz.service.ClassGroupService;
|
|
|
+import com.ym.mec.biz.service.MusicGroupService;
|
|
|
+import com.ym.mec.common.controller.BaseController;
|
|
|
+import com.ym.mec.common.page.QueryInfo;
|
|
|
+
|
|
|
@RequestMapping("course")
|
|
|
@Api(tags = "课程服务")
|
|
|
@RestController
|
|
@@ -81,16 +79,4 @@ public class CourseController extends BaseController {
|
|
|
studentPayLogQueryInfo.setUserId(sysUser.getId());
|
|
|
return succeed(classGroupService.queryStudentPayLog(studentPayLogQueryInfo));
|
|
|
}
|
|
|
-
|
|
|
- @ApiOperation(value = "课酬调整")
|
|
|
- @PostMapping("/updateTeacherCoursesSalary")
|
|
|
- @PreAuthorize("@pcs.hasPermissions('course/updateTeacherCoursesSalary')")
|
|
|
- public Object updateTeacherCoursesSalary(Long courseScheduleId, Integer teacherId, BigDecimal salary, BigDecimal subsidy, String scope) {
|
|
|
- SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
- if (sysUser == null || sysUser.getId() == null) {
|
|
|
- return failed("获取用户失败");
|
|
|
- }
|
|
|
- musicGroupService.updateTeacherCoursesSalary(courseScheduleId, teacherId, salary, subsidy, scope);
|
|
|
- return succeed();
|
|
|
- }
|
|
|
}
|