|
@@ -1,5 +1,7 @@
|
|
|
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;
|
|
@@ -7,8 +9,10 @@ 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;
|
|
|
+
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
@@ -72,4 +76,15 @@ public class CourseController extends BaseController {
|
|
|
studentPayLogQueryInfo.setUserId(sysUser.getId());
|
|
|
return succeed(classGroupService.queryStudentPayLog(studentPayLogQueryInfo));
|
|
|
}
|
|
|
+
|
|
|
+ @ApiOperation(value = "课酬调整")
|
|
|
+ @PostMapping("/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();
|
|
|
+ }
|
|
|
}
|