forked from liweijie/education
添加一个复职的功能,页面操作列按钮分成两行展示,添加根据离职过滤
This commit is contained in:
+15
-1
@@ -213,6 +213,18 @@ public class JYSController {
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
/**
|
||||
* 复职(还原离职状态)教员
|
||||
*
|
||||
* @param jybh 教员编号
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('teach:teacher:list')")
|
||||
@PostMapping("/teacher/enable")
|
||||
public Result<Void> enableTeacher(@RequestParam("jybh") String jybh) {
|
||||
facultyService.enableJYB(jybh);
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
/**
|
||||
* 单个教员补建/对齐系统账号(幂等:已有账号直接返回用户编号)。
|
||||
*/
|
||||
@@ -303,7 +315,8 @@ public class JYSController {
|
||||
@RequestParam(required = false) String jyxm,
|
||||
@RequestParam(required = false) String jysdh,
|
||||
@RequestParam(required = false) String zc,
|
||||
@RequestParam(required = false) String jylb) {
|
||||
@RequestParam(required = false) String jylb,
|
||||
@RequestParam(required = false) Integer lzzt) {
|
||||
PageQuery query = new PageQuery();
|
||||
query.setPageNum(pageNum);
|
||||
query.setPageSize(pageSize);
|
||||
@@ -312,6 +325,7 @@ public class JYSController {
|
||||
cond.setJysdh(jysdh);
|
||||
cond.setZc(zc);
|
||||
cond.setJylb(jylb);
|
||||
cond.setLzzt(lzzt);
|
||||
PageResult<TeacherListVO> pageResult = facultyService.pageJYBDetail(query, cond);
|
||||
return Result.success(pageResult);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user