package com.ruoyi.project.plant.mapper; import com.ruoyi.framework.aspectj.lang.annotation.DataScope; import com.ruoyi.framework.web.domain.BaseEntity; import com.ruoyi.project.common.domain.DataEntity; import com.ruoyi.project.plant.domain.TStaffmgr; import com.ruoyi.project.system.domain.SysUser; import java.util.List; import java.util.Map; /** * 人员管理Mapper接口 * * @author ruoyi * @date 2020-11-25 */ public interface TStaffmgrMapper { /** * 获取当班班长 */ public TStaffmgr selectMonitor(TStaffmgr tStaffmgr); /** * 获取OTS培训专员 */ public List selectOtsList(TStaffmgr tStaffmgr); /** * 获取SAI验证人列表 */ public List selectSaiInspectors(); /** * 获取SAI整改负责人列表 */ public List selectSaiExecutors(); /** * 查询导师下拉列表 * * @param tStaffmgr 人员管理 * @return 人员管理集合 */ public List selectMentorList(TStaffmgr tStaffmgr); /** * 查询人员管理 * * @param staffid 人员管理员工编号 * @return 人员管理 */ public TStaffmgr selectTStaffmgrByStaffId(String staffid); /** * 查询人员管理 * * @param id 人员管理ID * @return 人员管理 */ public TStaffmgr selectTStaffmgrById(Long id); /** * 查询人员管理列表 * * @param tStaffmgr 人员管理 * @return 人员管理集合 */ @DataScope(deptAlias = "d") public List selectTStaffmgrList(TStaffmgr tStaffmgr); /** * 查询人员管理列表 * * @param tStaffmgr 人员管理 * @return 人员管理集合 */ public List selectTStaffmgrListByDeptId(TStaffmgr tStaffmgr); @DataScope(deptAlias = "d") public List selectAllTStaffmgrList(TStaffmgr tStaffmgr); /** * 查询人员管理列表(无数据权限过滤,供定时任务使用) * * @param tStaffmgr 人员管理 * @return 人员管理集合 */ public List selectAllTStaffmgrListWithoutScope(TStaffmgr tStaffmgr); public List selectTStaffmgrListByDeptAndTeam(TStaffmgr tStaffmgr); /** * 查询人员管理列表 * * @param tStaffmgr 人员管理 * @return 人员管理集合 */ public List selectTStaffmgrListAll(TStaffmgr tStaffmgr); /** * 定时任务查询人员管理列表 * * @param tStaffmgr 人员管理 * @return 人员管理集合 */ @DataScope(deptAlias = "d") public List selectList(TStaffmgr tStaffmgr); List selectTaskList(TStaffmgr tStaffmgr); /** * 培训查询人员管理列表 * * @param tStaffmgr 人员管理 * @return 人员管理集合 */ @DataScope(deptAlias = "d") public List selectRecordList(TStaffmgr tStaffmgr); /** * 新增人员管理 * * @param tStaffmgr 人员管理 * @return 结果 */ public int insertTStaffmgr(TStaffmgr tStaffmgr); /** * 修改人员管理 * * @param tStaffmgr 人员管理 * @return 结果 */ public int updateTStaffmgr(TStaffmgr tStaffmgr); /** * 删除人员管理 * * @param id 人员管理ID * @return 结果 */ public int deleteTStaffmgrById(Long id); public int deleteLeftTStaffmgrByIds(Long ids); /** * 批量删除人员管理 * * @param ids 需要删除的数据ID * @return 结果 */ public int deleteTStaffmgrByIds(Long[] ids); @DataScope(deptAlias = "d") List selectEduData(TStaffmgr param); @DataScope(deptAlias = "d") List selectEngData(TStaffmgr param); @DataScope(deptAlias = "d") List selectTeamData(TStaffmgr param); @DataScope(deptAlias = "d") List selectAgeData(TStaffmgr param); @DataScope(deptAlias = "d") List selectLeftTStaffmgrList(TStaffmgr tStaffmgr); int reLeftTStaffmgrByIds(Long id); List selectTStaffmgrByPost(SysUser sysUser); List selectTMentorStaffmgrByPost(SysUser sysUser); List> selectUserInfoByStaffmgr(TStaffmgr tStaffmgr); int deleteRetireTStaffmgrByIds(Long id); }