|
|
@@ -36,12 +36,16 @@ import vip.xiaonuo.common.handler.CommonSm4CbcTypeHandler;
|
|
|
import vip.xiaonuo.common.pojo.CommonResult;
|
|
|
import vip.xiaonuo.common.pojo.CommonValidList;
|
|
|
import vip.xiaonuo.common.util.CommonCryptogramUtil;
|
|
|
+import vip.xiaonuo.disk.domain.Chapter;
|
|
|
+import vip.xiaonuo.disk.domain.ClassHour;
|
|
|
import vip.xiaonuo.disk.domain.CourseStudentRelate;
|
|
|
import vip.xiaonuo.disk.domain.ResourceRecordUserRelate;
|
|
|
import vip.xiaonuo.disk.param.coursestudentrelate.CourseStudentRelateAddParam;
|
|
|
import vip.xiaonuo.disk.param.coursestudentrelate.CourseStudentRelateEditParam;
|
|
|
import vip.xiaonuo.disk.param.coursestudentrelate.CourseStudentRelateIdParam;
|
|
|
import vip.xiaonuo.disk.param.coursestudentrelate.CourseStudentRelatePageParam;
|
|
|
+import vip.xiaonuo.disk.service.ChapterService;
|
|
|
+import vip.xiaonuo.disk.service.ClassHourService;
|
|
|
import vip.xiaonuo.disk.service.CourseStudentRelateService;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
@@ -70,6 +74,10 @@ public class CourseStudentRelateController {
|
|
|
@Resource
|
|
|
private CourseStudentRelateService courseStudentRelateService;
|
|
|
@Resource
|
|
|
+ private ChapterService chapterService;
|
|
|
+ @Resource
|
|
|
+ private ClassHourService classHourService;
|
|
|
+ @Resource
|
|
|
private CommonCryptogramUtil commonCryptogramUtil;
|
|
|
|
|
|
/**
|
|
|
@@ -308,6 +316,42 @@ public class CourseStudentRelateController {
|
|
|
.orElse(null);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 获取关联学生-下拉列表
|
|
|
+ *
|
|
|
+ * @author honorfire
|
|
|
+ * @date 2025/07/12 11:04
|
|
|
+ */
|
|
|
+ @ApiOperationSupport(order = 1)
|
|
|
+ @ApiOperation("获取关联学生-下拉列表")
|
|
|
+// @SaCheckPermission("/disk/coursestudentrelate/downList")
|
|
|
+ @GetMapping("/disk/coursestudentrelate/downList")
|
|
|
+ public CommonResult<Page<Map<String,Object>>> downList(CourseStudentRelatePageParam courseStudentRelatePageParam, HttpServletRequest req) {
|
|
|
+ Map param =new HashMap();
|
|
|
+ String courseId="";
|
|
|
+ if(StringUtils.isNotEmpty(req.getParameter("courseId"))){
|
|
|
+ courseId=req.getParameter("courseId");
|
|
|
+ }else if(StringUtils.isNotEmpty(req.getParameter("gradesId")))
|
|
|
+ {
|
|
|
+ param.put("gradesId", req.getParameter("gradesId"));
|
|
|
+ }else if(StringUtils.isNotEmpty(req.getParameter("chapterId")))
|
|
|
+ {
|
|
|
+ Chapter chapter = chapterService.queryEntity(req.getParameter("chapterId"));
|
|
|
+ courseId=chapter.getCourseId();
|
|
|
+ }
|
|
|
+ else if(StringUtils.isNotEmpty(req.getParameter("hourId")))
|
|
|
+ {
|
|
|
+ ClassHour classHour = classHourService.queryEntity(req.getParameter("hourId"));
|
|
|
+ Chapter chapter = chapterService.queryEntity(classHour.getChapterId());
|
|
|
+ courseId=chapter.getCourseId();
|
|
|
+ }
|
|
|
+ param.put("courseId", courseId);
|
|
|
+ Page<Map<String,Object>> page=courseStudentRelateService.downList(param);
|
|
|
+
|
|
|
+ return CommonResult.data(page);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
}
|