|
@@ -2,6 +2,8 @@ package com.ruoyi.project.training.spec.controller;
|
|
|
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
|
|
+import com.ruoyi.project.system.domain.SysUser;
|
|
|
|
+import com.ruoyi.project.system.service.ISysUserService;
|
|
import com.ruoyi.project.training.spec.domain.TStSuccessor;
|
|
import com.ruoyi.project.training.spec.domain.TStSuccessor;
|
|
import com.ruoyi.project.training.spec.service.ITStSuccessorService;
|
|
import com.ruoyi.project.training.spec.service.ITStSuccessorService;
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
@@ -39,6 +41,9 @@ public class TStPlanController extends BaseController
|
|
@Autowired
|
|
@Autowired
|
|
private ITStSuccessorService tStSuccessorService;
|
|
private ITStSuccessorService tStSuccessorService;
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ private ISysUserService sysUserService;
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 根据STAFF_ID查询培训计划列表
|
|
* 根据STAFF_ID查询培训计划列表
|
|
* @autor 王子文
|
|
* @autor 王子文
|
|
@@ -49,6 +54,10 @@ public class TStPlanController extends BaseController
|
|
@PreAuthorize("@ss.hasPermi('spec:plan:list')")
|
|
@PreAuthorize("@ss.hasPermi('spec:plan:list')")
|
|
@GetMapping("/listByStaffId")
|
|
@GetMapping("/listByStaffId")
|
|
public TableDataInfo listByStaffId(TStPlan tStPlan) {
|
|
public TableDataInfo listByStaffId(TStPlan tStPlan) {
|
|
|
|
+ Long userId = getUserId();
|
|
|
|
+ SysUser sysUser = sysUserService.selectUserById(userId);
|
|
|
|
+ String staffId = sysUser.getStaffId();
|
|
|
|
+ tStPlan.setStaffId(staffId);
|
|
startPage();
|
|
startPage();
|
|
List<TStPlan> list = tStPlanService.selectTStPlanListByStaffId(tStPlan);
|
|
List<TStPlan> list = tStPlanService.selectTStPlanListByStaffId(tStPlan);
|
|
return getDataTable(list);
|
|
return getDataTable(list);
|
|
@@ -64,7 +73,6 @@ public class TStPlanController extends BaseController
|
|
@PreAuthorize("@ss.hasPermi('spec:plan:list')")
|
|
@PreAuthorize("@ss.hasPermi('spec:plan:list')")
|
|
@GetMapping("/getSuccessorListByMentorId")
|
|
@GetMapping("/getSuccessorListByMentorId")
|
|
public AjaxResult getSuccessorListByMentorId(TStSuccessor tStSuccessor) {
|
|
public AjaxResult getSuccessorListByMentorId(TStSuccessor tStSuccessor) {
|
|
- getUserId();
|
|
|
|
List<TStSuccessor> tStSuccessors = tStSuccessorService.selectTStSuccessorListByMentorId(tStSuccessor);
|
|
List<TStSuccessor> tStSuccessors = tStSuccessorService.selectTStSuccessorListByMentorId(tStSuccessor);
|
|
return AjaxResult.success(tStSuccessors);
|
|
return AjaxResult.success(tStSuccessors);
|
|
}
|
|
}
|