|
@@ -4,12 +4,15 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.gyee.boot.base.api.api.dto.BaseQueryReqDTO;
|
|
import com.gyee.boot.base.api.api.dto.BaseQueryReqDTO;
|
|
|
|
+import com.gyee.boot.base.api.api.dto.BaseUserQueryReqDTO;
|
|
import com.gyee.boot.base.api.api.dto.PagingReqDTO;
|
|
import com.gyee.boot.base.api.api.dto.PagingReqDTO;
|
|
import com.gyee.exam.ability.redis.service.RedisService;
|
|
import com.gyee.exam.ability.redis.service.RedisService;
|
|
import com.gyee.exam.modules.course.dto.CourseFileLearnDTO;
|
|
import com.gyee.exam.modules.course.dto.CourseFileLearnDTO;
|
|
import com.gyee.exam.modules.course.dto.ext.CourseLearnResultExtDTO;
|
|
import com.gyee.exam.modules.course.dto.ext.CourseLearnResultExtDTO;
|
|
import com.gyee.exam.modules.course.dto.response.CourseDepartTotalDTO;
|
|
import com.gyee.exam.modules.course.dto.response.CourseDepartTotalDTO;
|
|
import com.gyee.exam.modules.course.dto.response.CourseFileLearnRespDTO;
|
|
import com.gyee.exam.modules.course.dto.response.CourseFileLearnRespDTO;
|
|
|
|
+import com.gyee.exam.modules.course.dto.response.CourseUserTotalDTO;
|
|
|
|
+import com.gyee.exam.modules.course.dto.response.CourseUserIdTotalDTO;
|
|
import com.gyee.exam.modules.course.entity.*;
|
|
import com.gyee.exam.modules.course.entity.*;
|
|
import com.gyee.exam.modules.course.enums.CourseState;
|
|
import com.gyee.exam.modules.course.enums.CourseState;
|
|
import com.gyee.exam.modules.course.mapper.CourseFileLearnMapper;
|
|
import com.gyee.exam.modules.course.mapper.CourseFileLearnMapper;
|
|
@@ -223,11 +226,7 @@ public class CourseFileLearnServiceImpl extends ServiceImpl<CourseFileLearnMappe
|
|
return record;
|
|
return record;
|
|
}
|
|
}
|
|
|
|
|
|
- @Override
|
|
|
|
- public List<CourseDepartTotalDTO> courseDepartTotalMin(BaseQueryReqDTO reqDTO) {
|
|
|
|
- List<CourseDepartTotalDTO> dtos = baseMapper.courseDepartTotalMin(reqDTO);
|
|
|
|
- return dtos;
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
|
|
|
|
/**
|
|
/**
|
|
* 校验整个课程的学习进度
|
|
* 校验整个课程的学习进度
|
|
@@ -277,5 +276,26 @@ public class CourseFileLearnServiceImpl extends ServiceImpl<CourseFileLearnMappe
|
|
courseLearnService.saveOrUpdate(learn);
|
|
courseLearnService.saveOrUpdate(learn);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
+ public List<CourseDepartTotalDTO> courseDepartTotalMin(BaseQueryReqDTO reqDTO) {
|
|
|
|
+ List<CourseDepartTotalDTO> dtos = baseMapper.courseDepartTotalMin(reqDTO);
|
|
|
|
+ return dtos;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public List<CourseUserTotalDTO> getCourseUserTotalMin(BaseUserQueryReqDTO reqDTO) {
|
|
|
|
+ List<CourseUserTotalDTO> dtos = baseMapper.selectCourseUserTotalMin(reqDTO);
|
|
|
|
+ return dtos;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public List<CourseUserIdTotalDTO> getCourseUserIdTotalMin(BaseUserQueryReqDTO reqDTO) {
|
|
|
|
+
|
|
|
|
+ List<CourseUserIdTotalDTO> dtos = baseMapper.selectCourseUserIdTotalMin(reqDTO);
|
|
|
|
+
|
|
|
|
+ return dtos;
|
|
|
|
+ }
|
|
|
|
|
|
}
|
|
}
|