|
|
@@ -1,6 +1,7 @@
|
|
|
package com.xjrsoft.module.internship.controller;
|
|
|
|
|
|
import cn.dev33.satoken.annotation.SaCheckPermission;
|
|
|
+import cn.dev33.satoken.stp.StpUtil;
|
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.xjrsoft.common.annotation.XjrLog;
|
|
|
@@ -56,6 +57,20 @@ public class InternshipPlanManageController {
|
|
|
return RT.ok(pageOutput);
|
|
|
}
|
|
|
|
|
|
+ @GetMapping(value = "/teacher-page")
|
|
|
+ @ApiOperation(value="实习计划管理表教师列表(分页)")
|
|
|
+ @SaCheckPermission("internshipplanmanage:detail")
|
|
|
+ @XjrLog(value = "实习计划管理表教师列表(分页)")
|
|
|
+ public RT<PageOutput<InternshipPlanManagePageVo>> teacherPage(@Valid InternshipPlanManagePageDto dto){
|
|
|
+ if(dto.getTeacherId() == null){
|
|
|
+ dto.setTeacherId(StpUtil.getLoginIdAsLong());
|
|
|
+ }
|
|
|
+ Page<InternshipPlanManagePageVo> page = internshipPlanManageService.getPage(new Page<>(dto.getLimit(), dto.getSize()), dto);
|
|
|
+ PageOutput<InternshipPlanManagePageVo> pageOutput = ConventPage.getPageOutput(page, InternshipPlanManagePageVo.class);
|
|
|
+ return RT.ok(pageOutput);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
@GetMapping(value = "/info")
|
|
|
@ApiOperation(value="根据id查询实习计划管理表信息")
|
|
|
@SaCheckPermission("internshipplanmanage:detail")
|