TStaffmgrMapper.java 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. package com.ruoyi.project.plant.mapper;
  2. import com.ruoyi.framework.aspectj.lang.annotation.DataScope;
  3. import com.ruoyi.framework.web.domain.BaseEntity;
  4. import com.ruoyi.project.common.domain.DataEntity;
  5. import com.ruoyi.project.plant.domain.TStaffmgr;
  6. import com.ruoyi.project.system.domain.SysUser;
  7. import java.util.List;
  8. import java.util.Map;
  9. /**
  10. * 人员管理Mapper接口
  11. *
  12. * @author ruoyi
  13. * @date 2020-11-25
  14. */
  15. public interface TStaffmgrMapper
  16. {
  17. /**
  18. * 获取当班班长
  19. */
  20. public TStaffmgr selectMonitor(TStaffmgr tStaffmgr);
  21. /**
  22. * 获取OTS培训专员
  23. */
  24. public List<TStaffmgr> selectOtsList(TStaffmgr tStaffmgr);
  25. /**
  26. * 获取SAI验证人列表
  27. */
  28. public List<TStaffmgr> selectSaiInspectors();
  29. /**
  30. * 获取SAI整改负责人列表
  31. */
  32. public List<TStaffmgr> selectSaiExecutors();
  33. /**
  34. * 查询导师下拉列表
  35. *
  36. * @param tStaffmgr 人员管理
  37. * @return 人员管理集合
  38. */
  39. public List<TStaffmgr> selectMentorList(TStaffmgr tStaffmgr);
  40. /**
  41. * 查询人员管理
  42. *
  43. * @param staffid 人员管理员工编号
  44. * @return 人员管理
  45. */
  46. public TStaffmgr selectTStaffmgrByStaffId(String staffid);
  47. /**
  48. * 查询人员管理
  49. *
  50. * @param id 人员管理ID
  51. * @return 人员管理
  52. */
  53. public TStaffmgr selectTStaffmgrById(Long id);
  54. /**
  55. * 查询人员管理列表
  56. *
  57. * @param tStaffmgr 人员管理
  58. * @return 人员管理集合
  59. */
  60. @DataScope(deptAlias = "d")
  61. public List<TStaffmgr> selectTStaffmgrList(TStaffmgr tStaffmgr);
  62. /**
  63. * 查询人员管理列表
  64. *
  65. * @param tStaffmgr 人员管理
  66. * @return 人员管理集合
  67. */
  68. public List<TStaffmgr> selectTStaffmgrListByDeptId(TStaffmgr tStaffmgr);
  69. @DataScope(deptAlias = "d")
  70. public List<TStaffmgr> selectAllTStaffmgrList(TStaffmgr tStaffmgr);
  71. /**
  72. * 查询人员管理列表(无数据权限过滤,供定时任务使用)
  73. *
  74. * @param tStaffmgr 人员管理
  75. * @return 人员管理集合
  76. */
  77. public List<TStaffmgr> selectAllTStaffmgrListWithoutScope(TStaffmgr tStaffmgr);
  78. public List<TStaffmgr> selectTStaffmgrListByDeptAndTeam(TStaffmgr tStaffmgr);
  79. /**
  80. * 查询人员管理列表
  81. *
  82. * @param tStaffmgr 人员管理
  83. * @return 人员管理集合
  84. */
  85. public List<TStaffmgr> selectTStaffmgrListAll(TStaffmgr tStaffmgr);
  86. /**
  87. * 定时任务查询人员管理列表
  88. *
  89. * @param tStaffmgr 人员管理
  90. * @return 人员管理集合
  91. */
  92. @DataScope(deptAlias = "d")
  93. public List<TStaffmgr> selectList(TStaffmgr tStaffmgr);
  94. List<TStaffmgr> selectTaskList(TStaffmgr tStaffmgr);
  95. /**
  96. * 培训查询人员管理列表
  97. *
  98. * @param tStaffmgr 人员管理
  99. * @return 人员管理集合
  100. */
  101. @DataScope(deptAlias = "d")
  102. public List<TStaffmgr> selectRecordList(TStaffmgr tStaffmgr);
  103. /**
  104. * 新增人员管理
  105. *
  106. * @param tStaffmgr 人员管理
  107. * @return 结果
  108. */
  109. public int insertTStaffmgr(TStaffmgr tStaffmgr);
  110. /**
  111. * 修改人员管理
  112. *
  113. * @param tStaffmgr 人员管理
  114. * @return 结果
  115. */
  116. public int updateTStaffmgr(TStaffmgr tStaffmgr);
  117. /**
  118. * 删除人员管理
  119. *
  120. * @param id 人员管理ID
  121. * @return 结果
  122. */
  123. public int deleteTStaffmgrById(Long id);
  124. public int deleteLeftTStaffmgrByIds(Long ids);
  125. /**
  126. * 批量删除人员管理
  127. *
  128. * @param ids 需要删除的数据ID
  129. * @return 结果
  130. */
  131. public int deleteTStaffmgrByIds(Long[] ids);
  132. @DataScope(deptAlias = "d")
  133. List<DataEntity> selectEduData(TStaffmgr param);
  134. @DataScope(deptAlias = "d")
  135. List<DataEntity> selectEngData(TStaffmgr param);
  136. @DataScope(deptAlias = "d")
  137. List<DataEntity> selectTeamData(TStaffmgr param);
  138. @DataScope(deptAlias = "d")
  139. List<DataEntity> selectAgeData(TStaffmgr param);
  140. @DataScope(deptAlias = "d")
  141. List<TStaffmgr> selectLeftTStaffmgrList(TStaffmgr tStaffmgr);
  142. int reLeftTStaffmgrByIds(Long id);
  143. List<TStaffmgr> selectTStaffmgrByPost(SysUser sysUser);
  144. List<TStaffmgr> selectTMentorStaffmgrByPost(SysUser sysUser);
  145. List<Map<String,Object>> selectUserInfoByStaffmgr(TStaffmgr tStaffmgr);
  146. int deleteRetireTStaffmgrByIds(Long id);
  147. }