|
@@ -6,18 +6,13 @@ import com.gyee.boot.base.api.annon.DataProtect;
|
|
|
import com.gyee.boot.base.api.annon.LogInject;
|
|
|
import com.gyee.boot.base.api.api.ApiRest;
|
|
|
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.aspect.log.enums.LogType;
|
|
|
import com.gyee.exam.modules.exam.dto.ExamDTO;
|
|
|
import com.gyee.exam.modules.exam.dto.request.ExamReqDTO;
|
|
|
import com.gyee.exam.modules.exam.dto.request.ExamSaveReqDTO;
|
|
|
-import com.gyee.exam.modules.exam.dto.response.ExamCheckRespDTO;
|
|
|
-import com.gyee.exam.modules.exam.dto.response.ExamOnlineRespDTO;
|
|
|
-import com.gyee.exam.modules.exam.dto.response.ExamReviewRespDTO;
|
|
|
+import com.gyee.exam.modules.exam.dto.response.*;
|
|
|
import com.gyee.exam.modules.exam.entity.Exam;
|
|
|
import com.gyee.exam.modules.exam.service.ExamService;
|
|
|
import io.swagger.annotations.Api;
|
|
@@ -28,6 +23,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.util.Date;
|
|
|
+import java.util.List;
|
|
|
|
|
|
/**
|
|
|
* <p>
|
|
@@ -181,4 +177,50 @@ public class ExamController extends BaseController {
|
|
|
respDTO.setPassword("");
|
|
|
return super.success(respDTO);
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 各部门考试及格率
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @ApiOperation(value = "部门考试及格率")
|
|
|
+ @GetMapping("/depart-passed-rate")
|
|
|
+ public ApiRest departPassedRate(@RequestBody BaseQueryReqDTO reqDTO) {
|
|
|
+
|
|
|
+ List<ExamDepartPassedRateDTO> dtoList = baseService.departPassedRate(reqDTO);
|
|
|
+ return super.success(dtoList);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 各职员考试及格率
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @ApiOperation(value = "用户考试及格率")
|
|
|
+ @GetMapping("/user-passed-rate")
|
|
|
+ public ApiRest userPassedRate(@RequestBody BaseQueryReqDTO reqDTO) {
|
|
|
+
|
|
|
+ List<ExamUserPassedRateDTO> dtoList = baseService.userPassedRate(reqDTO);
|
|
|
+ return super.success(dtoList);
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 部门培训统计
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @ApiOperation(value = "部门培训统计")
|
|
|
+ @GetMapping("/exam-depart-total")
|
|
|
+ public ApiRest examDepartTotal(@RequestBody BaseQueryReqDTO reqDTO) {
|
|
|
+
|
|
|
+ List<ExamDepartTotalDTO> dtoList = baseService.examDepartTotal(reqDTO);
|
|
|
+ return super.success(dtoList);
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
}
|