|
@@ -12,14 +12,14 @@ 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.CourseDepartRankDTO;
|
|
|
|
-import com.gyee.exam.modules.course.dto.response.UserCourseRespDTO;
|
|
|
|
|
|
+import com.gyee.exam.modules.course.dto.response.*;
|
|
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;
|
|
import com.gyee.exam.modules.qu.service.QuService;
|
|
import com.gyee.exam.modules.qu.service.QuService;
|
|
import com.gyee.exam.modules.tmpl.service.TmplService;
|
|
import com.gyee.exam.modules.tmpl.service.TmplService;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.shiro.authz.annotation.Logical;
|
|
import org.apache.shiro.authz.annotation.Logical;
|
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -196,4 +196,49 @@ public class CourseController extends BaseController {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 统计职员学习总时长(分钟)
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ @ApiOperation(value = "统计职员学习总时长(分钟)")
|
|
|
|
+ @GetMapping("/course-user-rank")
|
|
|
|
+ public ApiRest courseUserRank(@RequestBody BaseQueryReqDTO reqDTO) {
|
|
|
|
+
|
|
|
|
+ List<CourseUserRankDTO> dtoList = baseService.courseUserRank(reqDTO);
|
|
|
|
+ return super.success(dtoList);
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 部门培训统计
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ @ApiOperation(value = "部门培训统计")
|
|
|
|
+ @GetMapping("/course-depart-total")
|
|
|
|
+ public ApiRest courseDepartTotal(@RequestBody BaseQueryReqDTO reqDTO) {
|
|
|
|
+ List<CourseDepartTotalDTO> dtoList = baseService.courseDepartTotal(reqDTO);
|
|
|
|
+ return super.success(dtoList);
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 单部门培训统计
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ @ApiOperation(value = "单部门培训统计")
|
|
|
|
+ @GetMapping("/course-departid-total")
|
|
|
|
+ public ApiRest courseDepartIdTotal(@RequestBody BaseQueryReqDTO reqDTO) {
|
|
|
|
+ if(null == reqDTO || StringUtils.isEmpty(reqDTO.getQ().trim())){
|
|
|
|
+ return super.failure("请求部门参数为空");
|
|
|
|
+ }
|
|
|
|
+ List<courseDepartIdTotalDTO> dtoList = baseService.courseDepartIdTotal(reqDTO);
|
|
|
|
+ return super.success(dtoList);
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
}
|
|
}
|