|
@@ -6,15 +6,13 @@ import com.gyee.boot.base.api.annon.DataProtect;
|
|
import com.gyee.boot.base.api.annon.LogInject;
|
|
import com.gyee.boot.base.api.annon.LogInject;
|
|
import com.gyee.boot.base.api.api.ApiRest;
|
|
import com.gyee.boot.base.api.api.ApiRest;
|
|
import com.gyee.boot.base.api.api.controller.BaseController;
|
|
import com.gyee.boot.base.api.api.controller.BaseController;
|
|
-import com.gyee.boot.base.api.api.dto.BaseIdReqDTO;
|
|
|
|
-import com.gyee.boot.base.api.api.dto.BaseIdsReqDTO;
|
|
|
|
-import com.gyee.boot.base.api.api.dto.BaseStateReqDTO;
|
|
|
|
-import com.gyee.boot.base.api.api.dto.PagingReqDTO;
|
|
|
|
|
|
+import com.gyee.boot.base.api.api.dto.*;
|
|
import com.gyee.boot.base.api.utils.BeanMapper;
|
|
import com.gyee.boot.base.api.utils.BeanMapper;
|
|
import com.gyee.boot.base.aspect.log.enums.LogType;
|
|
import com.gyee.boot.base.aspect.log.enums.LogType;
|
|
import com.gyee.exam.modules.course.dto.CourseDTO;
|
|
import com.gyee.exam.modules.course.dto.CourseDTO;
|
|
import com.gyee.exam.modules.course.dto.ext.CourseDetailExtDTO;
|
|
import com.gyee.exam.modules.course.dto.ext.CourseDetailExtDTO;
|
|
import com.gyee.exam.modules.course.dto.request.UserCourseReqDTO;
|
|
import com.gyee.exam.modules.course.dto.request.UserCourseReqDTO;
|
|
|
|
+import com.gyee.exam.modules.course.dto.response.CourseDepartTotalDTO;
|
|
import com.gyee.exam.modules.course.dto.response.UserCourseRespDTO;
|
|
import com.gyee.exam.modules.course.dto.response.UserCourseRespDTO;
|
|
import com.gyee.exam.modules.course.entity.Course;
|
|
import com.gyee.exam.modules.course.entity.Course;
|
|
import com.gyee.exam.modules.course.service.CourseService;
|
|
import com.gyee.exam.modules.course.service.CourseService;
|
|
@@ -28,6 +26,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.util.HashMap;
|
|
import java.util.HashMap;
|
|
|
|
+import java.util.List;
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -182,4 +181,19 @@ public class CourseController extends BaseController {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 各部门课程排行
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ @ApiOperation(value = "课程部门排行")
|
|
|
|
+ @GetMapping("/cdt-total")
|
|
|
|
+ public ApiRest courseDepartTotal(@RequestBody BaseQueryReqDTO reqDTO) {
|
|
|
|
+
|
|
|
|
+ List<CourseDepartTotalDTO> dtoList = baseService.courseDepartTotal(reqDTO);
|
|
|
|
+
|
|
|
|
+ return super.success(dtoList);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
}
|
|
}
|