|
|
@@ -73,7 +73,7 @@ public class CourseInfoController {
|
|
|
@SaCheckPermission("/disk/courseinfo/page")
|
|
|
@GetMapping("/disk/courseinfo/page")
|
|
|
public CommonResult<Page<Map<String,Object>>> page(CourseInfoPageParam courseInfoPageParam, HttpServletRequest req) {
|
|
|
- Map param =new HashMap();
|
|
|
+ Map param =new HashMap(6);
|
|
|
param.put("courseName", req.getParameter("courseName"));
|
|
|
param.put("collegeId", req.getParameter("collegeId"));
|
|
|
param.put("majorId", req.getParameter("majorId"));
|
|
|
@@ -114,7 +114,8 @@ public class CourseInfoController {
|
|
|
@CommonLog("课程信息-添加")
|
|
|
@SaCheckPermission("/disk/courseinfo/add")
|
|
|
@PostMapping("/disk/courseinfo/add")
|
|
|
- public CommonResult<String> add(@RequestBody @Valid CourseInfoAddParam courseInfoAddParam) {
|
|
|
+ public CommonResult<Map<String, Object>> add(@RequestBody @Valid CourseInfoAddParam courseInfoAddParam) {
|
|
|
+ Map result = new HashMap();
|
|
|
//1.先添加课程信息
|
|
|
CourseInfo courseInfo = BeanUtil.toBean(courseInfoAddParam, CourseInfo.class);
|
|
|
//设置审核状态变成待审核(2025.6.26废弃,现在只要资源发布就有课程,只是最后审关联课程一个都没通过,没有关联的资源会查不出来)
|
|
|
@@ -138,7 +139,8 @@ public class CourseInfoController {
|
|
|
// }
|
|
|
//
|
|
|
// courseAuditRecordService.editBatch(courseAuditRecordList);
|
|
|
- return CommonResult.ok();
|
|
|
+ result.put("courseId", courseInfo.getCourseId());
|
|
|
+ return CommonResult.data(result);
|
|
|
}
|
|
|
|
|
|
/**
|