|
|
|
@ -1,8 +1,10 @@
|
|
|
|
|
package com.ibeetl.jlw.service;
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.util.ObjectUtil;
|
|
|
|
|
import com.ibeetl.admin.core.entity.CoreUser;
|
|
|
|
|
import com.ibeetl.admin.core.service.CoreBaseService;
|
|
|
|
|
import com.ibeetl.admin.core.util.PlatformException;
|
|
|
|
|
import com.ibeetl.admin.core.web.JsonResult;
|
|
|
|
|
import com.ibeetl.jlw.dao.CourseInfoDao;
|
|
|
|
|
import com.ibeetl.jlw.dao.UniversitiesCollegesJurisdictionCurriculumResourcesDao;
|
|
|
|
|
import com.ibeetl.jlw.entity.CourseInfo;
|
|
|
|
@ -234,4 +236,41 @@ public class UniversitiesCollegesJurisdictionCurriculumResourcesService extends
|
|
|
|
|
public List<UniversitiesCollegesJurisdictionCurriculumResources> getAllOverdueAuthByBeforeAndAfterDays(Long beforeDays, Long afterDays, Long orgId) {
|
|
|
|
|
return universitiesCollegesJurisdictionCurriculumResourcesDao.getAllOverdueAuthByBeforeAndAfterDays(beforeDays, afterDays, orgId);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 老师课程设置-系统导入列表
|
|
|
|
|
* @param orgId
|
|
|
|
|
* @param courseType
|
|
|
|
|
*/
|
|
|
|
|
public List<Map<String,Object>> getTheoryAddOpenCourseList(Long orgId,Integer courseType){
|
|
|
|
|
List<Map<String,Object>> theoryCourseList = new ArrayList<>();
|
|
|
|
|
if (ObjectUtil.equal(courseType,0) || ObjectUtil.isNull(courseType)){
|
|
|
|
|
List<TeacherOpenCourse> teacherCourseList = sqlManager.lambdaQuery(TeacherOpenCourse.class)
|
|
|
|
|
.andEq(TeacherOpenCourse::getOrgId, orgId)
|
|
|
|
|
.andEq(TeacherOpenCourse::getTeacherOpenCourseStatus, 1)
|
|
|
|
|
.select();
|
|
|
|
|
|
|
|
|
|
teacherCourseList.forEach(item ->{
|
|
|
|
|
Map<String,Object> map = new HashMap<>();
|
|
|
|
|
map.put("courseInfoName",item.getTeacherOpenCourseTitle());
|
|
|
|
|
map.put("courseInfoId",item.getTeacherOpenCourseId());
|
|
|
|
|
theoryCourseList.add(map);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (ObjectUtil.equal(courseType,1) || ObjectUtil.isNull(courseType)){
|
|
|
|
|
List<CourseInfo> courseInfoList = sqlManager.lambdaQuery(CourseInfo.class)
|
|
|
|
|
.andEq(CourseInfo::getOrgId, orgId)
|
|
|
|
|
.andEq(CourseInfo::getCourseInfoStatus, 1)
|
|
|
|
|
.select();
|
|
|
|
|
|
|
|
|
|
courseInfoList.forEach(item ->{
|
|
|
|
|
Map<String,Object> map = new HashMap<>();
|
|
|
|
|
map.put("courseInfoName",item.getCourseInfoName());
|
|
|
|
|
map.put("courseInfoId",item.getCourseInfoId());
|
|
|
|
|
theoryCourseList.add(map);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
return theoryCourseList;
|
|
|
|
|
}
|
|
|
|
|
}
|