|
@@ -9,7 +9,9 @@ import com.ruoyi.project.system.domain.SysUser;
|
|
|
import com.ruoyi.project.system.service.ISysUserService;
|
|
import com.ruoyi.project.system.service.ISysUserService;
|
|
|
import com.ruoyi.project.training.spec.domain.TStSuccessorScore;
|
|
import com.ruoyi.project.training.spec.domain.TStSuccessorScore;
|
|
|
import com.ruoyi.project.training.spec.domain.vo.TStSuccessorExportVO;
|
|
import com.ruoyi.project.training.spec.domain.vo.TStSuccessorExportVO;
|
|
|
|
|
+import com.ruoyi.project.training.spec.mapper.TStYearplanMapper;
|
|
|
import com.ruoyi.project.training.spec.service.ITStSuccessorScoreService;
|
|
import com.ruoyi.project.training.spec.service.ITStSuccessorScoreService;
|
|
|
|
|
+import com.ruoyi.project.training.spec.service.ITStYearplanService;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
@@ -49,7 +51,8 @@ public class TStSuccessorController extends BaseController
|
|
|
private ISysUserService sysUserService;
|
|
private ISysUserService sysUserService;
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private ITStSuccessorScoreService tStSuccessorScoreService;
|
|
private ITStSuccessorScoreService tStSuccessorScoreService;
|
|
|
-
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private TStYearplanMapper tStYearplanMapper;
|
|
|
/**
|
|
/**
|
|
|
* 查询导师列表
|
|
* 查询导师列表
|
|
|
*/
|
|
*/
|
|
@@ -209,6 +212,12 @@ public class TStSuccessorController extends BaseController
|
|
|
@DeleteMapping("/{ids}")
|
|
@DeleteMapping("/{ids}")
|
|
|
public AjaxResult remove(@PathVariable Long[] ids)
|
|
public AjaxResult remove(@PathVariable Long[] ids)
|
|
|
{
|
|
{
|
|
|
|
|
+ //删除对应年度计划
|
|
|
|
|
+ for (Long id: ids
|
|
|
|
|
+ ) {
|
|
|
|
|
+ TStSuccessor t = tStSuccessorService.selectTStSuccessorById(id);
|
|
|
|
|
+ tStYearplanMapper.deleteTStYearplanByStaffId(t.getStaffId());
|
|
|
|
|
+ }
|
|
|
return toAjax(tStSuccessorService.deleteTStSuccessorByIds(ids));
|
|
return toAjax(tStSuccessorService.deleteTStSuccessorByIds(ids));
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|