教育训练处考试制证系统后端
huangzhen
2023-10-27 b97c9326a5370fd9a190e2a0f49645ff93e9bcef
exam-system/src/main/java/com/gkhy/exam/coalmine/controller/TeacherManageController.java
@@ -50,11 +50,18 @@
    @ApiOperation(value = "分页获取教师管理",httpMethod = "GET")
    @GetMapping("/page")
    public TableDataInfo selectTeacherAll(@RequestParam @NotNull(message = "isCm不能为空") int isCm) {
        startPage();
        List<GetTeacherRespDTO> list = eduResourcesManagerService.selectTeacherAll(isCm);
        return getDataTable(list);
    }
    @ApiOperation(value = "分页获取教师管理通过工种类型",httpMethod = "GET")
    @GetMapping("/pageByCondition")
    public TableDataInfo selectTeacherByCondition(@RequestParam @NotNull(message = "isCm不能为空") int isCm
            ,@RequestParam Long operateTypeId) {
        List<GetTeacherRespDTO> list = eduResourcesManagerService.selectTeacherByCondition(isCm,operateTypeId);
        return getDataTable(list);
    }
    /**
     * 通过主键查询单条数据
     */