|
@@ -1,37 +1,24 @@
|
|
|
package com.ym.mec.web.controller;
|
|
|
|
|
|
-import io.swagger.annotations.Api;
|
|
|
-import io.swagger.annotations.ApiImplicitParam;
|
|
|
-import io.swagger.annotations.ApiImplicitParams;
|
|
|
-import io.swagger.annotations.ApiOperation;
|
|
|
-import io.swagger.annotations.ApiParam;
|
|
|
-
|
|
|
-import java.util.Arrays;
|
|
|
-import java.util.Date;
|
|
|
-import java.util.List;
|
|
|
-
|
|
|
-import org.apache.commons.lang3.StringUtils;
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
-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.dao.EmployeeDao;
|
|
|
+import com.ym.mec.biz.dal.dto.UpdateStudentFeeDto;
|
|
|
import com.ym.mec.biz.dal.entity.Employee;
|
|
|
-import com.ym.mec.biz.dal.page.MusicGroupStudentQueryInfo;
|
|
|
-import com.ym.mec.biz.dal.page.StudentManageAttendanceQueryInfo;
|
|
|
-import com.ym.mec.biz.dal.page.StudentManageCourseQueryInfo;
|
|
|
-import com.ym.mec.biz.dal.page.StudentManageQueryInfo;
|
|
|
-import com.ym.mec.biz.dal.page.StudentManageVipClassQueryInfo;
|
|
|
-import com.ym.mec.biz.dal.page.StudentSignQueryInfo;
|
|
|
-import com.ym.mec.biz.dal.page.TeacherPaymentRecordInfo;
|
|
|
+import com.ym.mec.biz.dal.page.*;
|
|
|
+import com.ym.mec.biz.service.MusicGroupStudentFeeService;
|
|
|
import com.ym.mec.biz.service.StudentManageService;
|
|
|
import com.ym.mec.biz.service.StudentRegistrationService;
|
|
|
import com.ym.mec.common.controller.BaseController;
|
|
|
+import io.swagger.annotations.*;
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
+
|
|
|
+import java.util.Arrays;
|
|
|
+import java.util.Date;
|
|
|
+import java.util.List;
|
|
|
|
|
|
@Api(tags = "学生管理")
|
|
|
@RequestMapping("studentManage")
|
|
@@ -45,6 +32,8 @@ public class StudentManageController extends BaseController {
|
|
|
@Autowired
|
|
|
private StudentRegistrationService studentRegistrationService;
|
|
|
@Autowired
|
|
|
+ private MusicGroupStudentFeeService musicGroupStudentFeeService;
|
|
|
+ @Autowired
|
|
|
private EmployeeDao employeeDao;
|
|
|
|
|
|
@ApiOperation(value = "获取学生列表")
|
|
@@ -192,4 +181,15 @@ public class StudentManageController extends BaseController {
|
|
|
public Object queryUserByPhone(String mobile) {
|
|
|
return succeed(studentRegistrationService.queryUserByPhone(mobile));
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 修改学员缴费金额和缴费周期
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GetMapping(value = "/updateStudentFee")
|
|
|
+ @PreAuthorize("@pcs.hasPermissions('studentManage/updateStudentFee')")
|
|
|
+ public Object updateStudentFee(@RequestBody UpdateStudentFeeDto studentFeeDto) {
|
|
|
+ musicGroupStudentFeeService.updateStudentFee(studentFeeDto);
|
|
|
+ return succeed();
|
|
|
+ }
|
|
|
}
|