PersonnelBaseArchivesManageDao.java 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  1. package cn.com.lzt.personnelbasearchivesmanage.dao;
  2. import java.util.List;
  3. import org.jeecgframework.minidao.annotation.Arguments;
  4. import org.jeecgframework.minidao.annotation.Param;
  5. import org.jeecgframework.minidao.annotation.ResultType;
  6. import org.jeecgframework.minidao.annotation.Sql;
  7. import org.jeecgframework.minidao.pojo.MiniDaoPage;
  8. import org.springframework.stereotype.Repository;
  9. import cn.com.lzt.personnelbasearchivesmanage.dto.DepartDto;
  10. import cn.com.lzt.personnelbasearchivesmanage.dto.LeavePersonTaxExcelExportDto;
  11. import cn.com.lzt.personnelbasearchivesmanage.dto.NewPersonTaxExcelExportDto;
  12. import cn.com.lzt.personnelbasearchivesmanage.dto.PersonnelBaseArchivesManageInDto;
  13. import cn.com.lzt.personnelbasearchivesmanage.dto.PersonnelBaseArchivesManageOutDto;
  14. import cn.com.lzt.personnelbasearchivesmanage.dto.exportandimportdto.TSysFileDto;
  15. import cn.com.lzt.personnelbasearchivesmanage.entity.PersonnelBaseArchivesManageEntity;
  16. @Repository
  17. public interface PersonnelBaseArchivesManageDao {
  18. Class<?> String = null;
  19. /**
  20. * 新员工-员工基本档案个税格式导出
  21. * @param inDto
  22. * @param page
  23. * @param rows
  24. * @param authSql
  25. * @param sortorder
  26. * @return 员工基本档案数据
  27. */
  28. @ResultType(NewPersonTaxExcelExportDto.class)
  29. public MiniDaoPage<NewPersonTaxExcelExportDto> getNewmanTaxExport(@Param("inDto") PersonnelBaseArchivesManageInDto inDto,
  30. @Param("page") int page,@Param("rows") int rows,@Param("authSql") String authSql,@Param("sortorder") String sortorder);
  31. /**
  32. * 离职员工-员工基本档案个税格式导出
  33. * @param inDto
  34. * @param page
  35. * @param rows
  36. * @param authSql
  37. * @param sortorder
  38. * @return 员工基本档案数据
  39. */
  40. @ResultType(LeavePersonTaxExcelExportDto.class)
  41. public MiniDaoPage<LeavePersonTaxExcelExportDto> getLeavemanTaxExport(@Param("inDto") PersonnelBaseArchivesManageInDto inDto,
  42. @Param("page") int page,@Param("rows") int rows,@Param("authSql") String authSql,@Param("sortorder") String sortorder);
  43. /**
  44. * 退休人员
  45. * @param inDto
  46. * @param toDate 截止日期
  47. * @return
  48. */
  49. @ResultType(LeavePersonTaxExcelExportDto.class)
  50. public MiniDaoPage<LeavePersonTaxExcelExportDto> getTiredperson(@Param("inDto") PersonnelBaseArchivesManageInDto inDto,
  51. @Param("page") int page,@Param("rows") int rows,@Param("authSql") String authSql,@Param("toDate") String toDate);
  52. /**
  53. * 员工基本档案数据检索
  54. * @param inDto
  55. * @param page
  56. * @param rows
  57. * @param authSql
  58. * @param sortorder
  59. * @return 员工基本档案数据
  60. */
  61. @ResultType(PersonnelBaseArchivesManageOutDto.class)
  62. public MiniDaoPage<PersonnelBaseArchivesManageOutDto> dataGrid(@Param("inDto") PersonnelBaseArchivesManageInDto inDto,
  63. @Param("page") int page,@Param("rows") int rows,@Param("authSql") String authSql,@Param("sortorder") String sortorder);
  64. @ResultType(PersonnelBaseArchivesManageOutDto.class)
  65. public MiniDaoPage<PersonnelBaseArchivesManageOutDto> dataGridLeave(@Param("inDto") PersonnelBaseArchivesManageInDto inDto,
  66. @Param("page") int page,@Param("rows") int rows,@Param("authSql") String authSql,@Param("sortorder") String sortorder);
  67. @ResultType(PersonnelBaseArchivesManageOutDto.class)
  68. public MiniDaoPage<PersonnelBaseArchivesManageOutDto> getAllEntities();
  69. @ResultType(PersonnelBaseArchivesManageOutDto.class)
  70. public MiniDaoPage<PersonnelBaseArchivesManageOutDto>getEntityByUserId(@Param("userId") String userId);
  71. /**
  72. * 部门下的所有部门ID
  73. * @param pId
  74. * @return 部门下的所有部门ID
  75. */
  76. @ResultType(DepartDto.class)
  77. public List<DepartDto> getAllChildDepart(@Param("pId") String pId);
  78. /**
  79. * 定时任务查询
  80. * 得到所有需要自动转正的员工
  81. * @return 得到所有需要自动转正的员工
  82. */
  83. @Sql("SELECT * FROM t_bus_user_personnel where (auto_correction = 1 or manager_type = 2) and position_status = 1")
  84. public List<PersonnelBaseArchivesManageEntity> getAllautoCorrection();
  85. /**
  86. * 查询某些角色的所有人员id
  87. * @param params
  88. * @return
  89. */
  90. @ResultType(DepartDto.class)
  91. public List<DepartDto> getUserIdByRole(@Param("params")List<String> params);
  92. // /**文件管理表
  93. // * 根据业务编码删除表数据
  94. // * @author zbw
  95. // * 2017-12-22
  96. // * @param ids
  97. // * @return
  98. // */
  99. // @Sql("delete from t_sys_file where 1=1 "+
  100. // " AND "+
  101. // "id IN ("+
  102. // " <#list tSysFileIdList as item> "+
  103. // " '${item}' "+
  104. // " <#if item_has_next>,</#if>"+
  105. // "</#list>"+
  106. // " ) ")
  107. // public int batchSysFileDeleteByTSysFileIdList(@Param("tSysFileIdList") List<String> tSysFileIdList);
  108. //
  109. // /**
  110. // * 用户附件表
  111. // * 根据用户id删除表数据
  112. // * @author zbw
  113. // * 2017-12-22
  114. // * @param tableName
  115. // * @param ids
  116. // * @return
  117. // */
  118. // @Sql("delete from t_bus_accessory where 1=1 "+
  119. // " AND "+
  120. // "userid IN ("+
  121. // " <#list userIdList as item> "+
  122. // " '${item}' "+
  123. // " <#if item_has_next>,</#if>"+
  124. // "</#list>"+
  125. // " ) ")
  126. // public int batchAccessoryDeleteByUserIdList(@Param("userIdList") List<String> userIdList);
  127. //
  128. // /**
  129. // * 员工财务信息表
  130. // * 根据用户id删除表数据
  131. // * @author zbw
  132. // * 2017-12-22
  133. // * @param tableName
  134. // * @param ids
  135. // * @return
  136. // */
  137. // @Sql("delete from t_bus_user_financial where 1=1 "+
  138. // " AND "+
  139. // "userid IN ("+
  140. // " <#list userIdList as item> "+
  141. // " '${item}' "+
  142. // " <#if item_has_next>,</#if>"+
  143. // "</#list>"+
  144. // " ) ")
  145. // public int batchFinancialDeleteByUserIdList(@Param("userIdList") List<String> userIdList);
  146. //
  147. // /**
  148. // *员工证书信息表
  149. // * 根据用户id删除表数据
  150. // * @author zbw
  151. // * 2017-12-22
  152. // * @param tableName
  153. // * @param ids
  154. // * @return
  155. // */
  156. // @Sql("delete from t_bus_user_certificate where 1=1 "+
  157. // " AND "+
  158. // "userid IN ("+
  159. // " <#list userIdList as item> "+
  160. // " '${item}' "+
  161. // " <#if item_has_next>,</#if>"+
  162. // "</#list>"+
  163. // " ) ")
  164. // public int batchCertificateDeleteByUserIdList(@Param("userIdList") List<String> userIdList);
  165. //
  166. // /**
  167. // * 员工人事信息表
  168. // * 根据用户id删除表数据
  169. // * @author zbw
  170. // * 2017-12-22
  171. // * @param tableName
  172. // * @param ids
  173. // * @return
  174. // */
  175. // @Sql("delete from t_bus_user_personnel where 1=1 "+
  176. // " AND "+
  177. // "userid IN ("+
  178. // " <#list userIdList as item> "+
  179. // " '${item}' "+
  180. // " <#if item_has_next>,</#if>"+
  181. // "</#list>"+
  182. // " ) ")
  183. // public int batchPersonnelDeleteByUserIdList(@Param("userIdList") List<String> userIdList);
  184. //
  185. // /**
  186. // * 用户与组织机构关系表
  187. // * 根据用户id删除表数据
  188. // * @author zbw
  189. // * 2017-12-22
  190. // * @param tableName
  191. // * @param ids
  192. // * @return
  193. // */
  194. // @Sql("delete from t_s_user_org where 1=1 "+
  195. // " AND "+
  196. // "user_id IN ("+
  197. // " <#list userIdList as item> "+
  198. // " '${item}' "+
  199. // " <#if item_has_next>,</#if>"+
  200. // "</#list>"+
  201. // " ) ")
  202. // public int batchOrgDeleteByUserIdList(@Param("userIdList") List<String> userIdList);
  203. //
  204. // /**
  205. // * 员工个人信息表
  206. // * 根据用户id删除表数据
  207. // * @author zbw
  208. // * 2017-12-22
  209. // * @param tableName
  210. // * @param ids
  211. // * @return
  212. // */
  213. // @Sql("delete from t_s_user where 1=1 "+
  214. // " AND "+
  215. // "id IN ("+
  216. // " <#list userIdList as item> "+
  217. // " '${item}' "+
  218. // " <#if item_has_next>,</#if>"+
  219. // "</#list>"+
  220. // " ) ")
  221. // public int batchUserDeleteByUserIdList(@Param("userIdList") List<String> userIdList);
  222. //
  223. //
  224. //
  225. // /**
  226. // * 根据员工工号删除数据
  227. // * @author zbw
  228. // * 2017-12-22
  229. // * @param ids
  230. // * @return
  231. // */
  232. // @Sql("delete from t_s_base_user where 1=1 "+
  233. // " AND "+
  234. // "username IN ("+
  235. // " <#list userNameList as item> "+
  236. // " '${item}' "+
  237. // " <#if item_has_next>,</#if>"+
  238. // "</#list>"+
  239. // " ) ")
  240. // public int batchBaseUserDeleteByUserNameList(@Param("userName") List<String> userNameList);
  241. /**
  242. * 文件上传分页批量查询
  243. * @author zbw
  244. * 2017-12-27
  245. * @param tSysFileDto
  246. * @param page
  247. * @param rows
  248. * @param authSql
  249. * @return
  250. */
  251. @Arguments({"tSysFileDto", "page", "rows","authSql"})
  252. @ResultType(TSysFileDto.class)
  253. public MiniDaoPage<TSysFileDto> getTSysFileDtoPage(
  254. TSysFileDto tSysFileDto, int page, int rows, String authSql);
  255. }