|
@@ -4,9 +4,7 @@ import com.ym.mec.biz.dal.dao.CourseScheduleDao;
|
|
|
import com.ym.mec.biz.dal.dao.StudentPaymentOrderDao;
|
|
|
import com.ym.mec.biz.dal.dao.SubjectDao;
|
|
|
import com.ym.mec.biz.dal.dto.*;
|
|
|
-import com.ym.mec.biz.dal.entity.StudentCourseHomework;
|
|
|
-import com.ym.mec.biz.dal.entity.Subject;
|
|
|
-import com.ym.mec.biz.dal.entity.Teacher;
|
|
|
+import com.ym.mec.biz.dal.entity.*;
|
|
|
import com.ym.mec.biz.dal.enums.ELessonTrainingType;
|
|
|
import com.ym.mec.biz.dal.enums.im.ClientEnum;
|
|
|
import com.ym.mec.biz.dal.page.*;
|
|
@@ -15,6 +13,7 @@ import com.ym.mec.biz.service.*;
|
|
|
import com.ym.mec.biz.service.im.ImGroupCoreService;
|
|
|
import com.ym.mec.common.controller.BaseController;
|
|
|
import com.ym.mec.common.entity.HttpResponseResult;
|
|
|
+import com.ym.mec.common.entity.ImGroupModel;
|
|
|
import com.ym.mec.common.exception.BizException;
|
|
|
import com.ym.mec.common.page.PageInfo;
|
|
|
import com.ym.mec.common.page.QueryInfo;
|
|
@@ -26,6 +25,7 @@ import org.springframework.util.CollectionUtils;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
+import java.math.BigDecimal;
|
|
|
import java.util.*;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
@@ -83,7 +83,7 @@ public class TeacherController extends BaseController {
|
|
|
|
|
|
@ApiOperation(value = "根据教师编号查询教师基本信息")
|
|
|
@GetMapping("/queryUserInfo")
|
|
|
- public Object queryUserInfo() {
|
|
|
+ public HttpResponseResult<Teacher> queryUserInfo() {
|
|
|
Teacher teacher = Optional.ofNullable(teacherService.get(sysUserService.getUserId())).
|
|
|
orElseThrow(()->new BizException("老师信息不存在"));
|
|
|
//专业技能
|
|
@@ -110,76 +110,76 @@ public class TeacherController extends BaseController {
|
|
|
@ApiOperation(value = "根据教师编号查询教师基本信息")
|
|
|
@GetMapping("/get")
|
|
|
@ApiParam(value = "教师编号", required = true)
|
|
|
- public Object get(Integer id) {
|
|
|
+ public HttpResponseResult<Teacher> get(Integer id) {
|
|
|
return succeed(teacherService.getDetail(id));
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "根据教师编号查询教师课程班列表")
|
|
|
@GetMapping("/getClass")
|
|
|
@ApiParam(value = "教师编号", required = true)
|
|
|
- public Object getClassGroup(Integer id) {
|
|
|
+ public HttpResponseResult<List<ClassGroup>> getClassGroup(Integer id) {
|
|
|
return succeed(classGroupService.findClassGroup4Teacher(id));
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "获取老师乐团课程信息列表")
|
|
|
@GetMapping("/getTeacherMusicClass")
|
|
|
@ApiParam(value = "教师编号", required = true)
|
|
|
- public Object getTeacherMusicClass(TeacherMusicClassQueryInfo queryInfo){
|
|
|
+ public HttpResponseResult<PageInfo<TeacherMusicClassInfoDto>> getTeacherMusicClass(TeacherMusicClassQueryInfo queryInfo){
|
|
|
return succeed(classGroupService.getTeacherMusicClass(queryInfo));
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "获取老师VIP课程信息列表")
|
|
|
@GetMapping("/getTeacherVipClass")
|
|
|
- public Object getTeacherVipClass(VipClassQueryInfo queryInfo){
|
|
|
+ public HttpResponseResult<PageInfo<TeacherVipClassInfoDto>> getTeacherVipClass(VipClassQueryInfo queryInfo){
|
|
|
return succeed(classGroupService.getTeacherVipClass(queryInfo));
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "获取教师所有聊天群组")
|
|
|
@GetMapping("/queryTeacherGroups")
|
|
|
- public Object queryTeacherGroups(String search){
|
|
|
+ public HttpResponseResult<List<ImGroupModel>> queryTeacherGroups(String search){
|
|
|
return succeed(teacherService.queryTeacherGroups(sysUserService.getUserId(),search));
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "获取当前教师通讯录列表")
|
|
|
@GetMapping("/queryGroupStudents")
|
|
|
- public Object queryGroupStudents(String search){
|
|
|
+ public HttpResponseResult<List<BasicUserDto>> queryGroupStudents(String search){
|
|
|
return succeed(teacherService.queryGroupStudents(sysUserService.getUserId(),search));
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "获取当前教师通讯录学员列表")
|
|
|
@GetMapping("/queryGroupStudentList")
|
|
|
- public Object queryGroupStudentList(String search){
|
|
|
+ public HttpResponseResult<List<BasicUserDto>> queryGroupStudentList(String search){
|
|
|
return succeed(teacherService.queryGroupStudentList(sysUserService.getUserId(),search));
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "分页查询群公告列表")
|
|
|
@GetMapping(value = "/queryNoticePage")
|
|
|
- public Object queryNoticePage(QueryInfo queryInfo){
|
|
|
+ public HttpResponseResult<PageInfo<ImGroupNotice>> queryNoticePage(QueryInfo queryInfo){
|
|
|
return succeed(imGroupNoticeService.queryPage(queryInfo));
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "获取教师上课结算列表")
|
|
|
@GetMapping("/queryCloses")
|
|
|
- public Object queryCloses(TeacherCloseQueryInfo queryInfo){
|
|
|
+ public HttpResponseResult<PageInfo<TeacherCloseDto>> queryCloses(TeacherCloseQueryInfo queryInfo){
|
|
|
return succeed(teacherService.queryCloses(queryInfo));
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "获取教师上课课酬未结算总额")
|
|
|
@GetMapping("/sumTeacherNoPay")
|
|
|
- public Object findTeacherNoPay(Integer teacherId){
|
|
|
+ public HttpResponseResult<BigDecimal> findTeacherNoPay(Integer teacherId){
|
|
|
return succeed(teacherService.findTeacherNoPay(teacherId));
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "获取乐团学院学员报名列表")
|
|
|
@GetMapping("/queryStudentApply")
|
|
|
- public Object queryMusicGroupStudentApply(queryMusicGroupStudentQueryInfo queryInfo) {
|
|
|
+ public HttpResponseResult<PageInfo<MusicGroupStudentApplyDto>> queryMusicGroupStudentApply(queryMusicGroupStudentQueryInfo queryInfo) {
|
|
|
return succeed(teacherService.queryMusicGroupStudentApply(queryInfo));
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "通过乐团编号查询乐团科目规划")
|
|
|
@GetMapping("/querySubByMusicGroupId")
|
|
|
@ApiImplicitParams({ @ApiImplicitParam(name = "musicGroupId", value = "乐团编号", required = true, dataType = "String")})
|
|
|
- public Object findSubByMusicGroupId(String musicGroupId){
|
|
|
+ public HttpResponseResult<List<Subject>> findSubByMusicGroupId(String musicGroupId){
|
|
|
return succeed(subjectService.findSubByMusicGroupId(musicGroupId));
|
|
|
}
|
|
|
|
|
@@ -190,7 +190,7 @@ public class TeacherController extends BaseController {
|
|
|
@ApiImplicitParam(name = "idcardFrontImg", value = "身份证正面", required = true, dataType = "String"),
|
|
|
@ApiImplicitParam(name = "idcardBackImg", value = "身份证背面", required = true, dataType = "String"),
|
|
|
@ApiImplicitParam(name = "idcardHandImg", value = "手持身份证照", required = true, dataType = "String") })
|
|
|
- public Object realNameAuthentication(String realName, String idcardNo, String idcardFrontImg, String idcardBackImg, String idcardHandImg) {
|
|
|
+ public HttpResponseResult<Object> realNameAuthentication(String realName, String idcardNo, String idcardFrontImg, String idcardBackImg, String idcardHandImg) {
|
|
|
teacherService.realNameAuthentication(sysUserService.getUserId(), realName, idcardNo, idcardFrontImg, idcardBackImg, idcardHandImg);
|
|
|
return succeed();
|
|
|
}
|