AdminMapper.java 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. package com.goafanti.common.dao;
  2. import java.util.List;
  3. import org.apache.ibatis.annotations.Param;
  4. import com.goafanti.admin.bo.AdminContacts;
  5. import com.goafanti.admin.bo.AdminListBo;
  6. import com.goafanti.app.bo.AppAdminListBo;
  7. import com.goafanti.common.model.Admin;
  8. import com.goafanti.common.model.Role;
  9. import com.goafanti.core.mybatis.page.Pagination;
  10. import com.goafanti.common.model.AdminExample;
  11. public interface AdminMapper {
  12. /**
  13. * This method was generated by MyBatis Generator. This method corresponds to the database table admin
  14. * @mbg.generated Fri Jun 22 14:12:55 CST 2018
  15. */
  16. long countByExample(AdminExample example);
  17. /**
  18. * This method was generated by MyBatis Generator. This method corresponds to the database table admin
  19. * @mbg.generated Fri Jun 22 14:12:55 CST 2018
  20. */
  21. int deleteByExample(AdminExample example);
  22. /**
  23. * This method was generated by MyBatis Generator. This method corresponds to the database table admin
  24. * @mbg.generated Fri Jun 22 14:12:55 CST 2018
  25. */
  26. int deleteByPrimaryKey(String id);
  27. /**
  28. * This method was generated by MyBatis Generator. This method corresponds to the database table admin
  29. * @mbg.generated Fri Jun 22 14:12:55 CST 2018
  30. */
  31. int insert(Admin record);
  32. /**
  33. * This method was generated by MyBatis Generator. This method corresponds to the database table admin
  34. * @mbg.generated Fri Jun 22 14:12:55 CST 2018
  35. */
  36. int insertSelective(Admin record);
  37. /**
  38. * This method was generated by MyBatis Generator. This method corresponds to the database table admin
  39. * @mbg.generated Fri Jun 22 14:12:55 CST 2018
  40. */
  41. List<Admin> selectByExample(AdminExample example);
  42. /**
  43. * This method was generated by MyBatis Generator. This method corresponds to the database table admin
  44. * @mbg.generated Fri Jun 22 14:12:55 CST 2018
  45. */
  46. Admin selectByPrimaryKey(String id);
  47. /**
  48. * This method was generated by MyBatis Generator. This method corresponds to the database table admin
  49. * @mbg.generated Fri Jun 22 14:12:55 CST 2018
  50. */
  51. int updateByExampleSelective(@Param("record") Admin record, @Param("example") AdminExample example);
  52. /**
  53. * This method was generated by MyBatis Generator. This method corresponds to the database table admin
  54. * @mbg.generated Fri Jun 22 14:12:55 CST 2018
  55. */
  56. int updateByExample(@Param("record") Admin record, @Param("example") AdminExample example);
  57. /**
  58. * This method was generated by MyBatis Generator. This method corresponds to the database table admin
  59. * @mbg.generated Fri Jun 22 14:12:55 CST 2018
  60. */
  61. int updateByPrimaryKeySelective(Admin record);
  62. /**
  63. * This method was generated by MyBatis Generator. This method corresponds to the database table admin
  64. * @mbg.generated Fri Jun 22 14:12:55 CST 2018
  65. */
  66. int updateByPrimaryKey(Admin record);
  67. Admin selectByMobile(String mobile);
  68. List<Role> selectRolesByPrimaryKey(String uid);
  69. List<Admin> selectCognizanceConsultant();
  70. List<Admin> selectCognizancePrincipal();
  71. List<Admin> selectPatentAuthor();
  72. List<Admin> selectPatentPrincipal();
  73. List<Admin> selectCopyrightConsultant();
  74. List<Admin> selectCopyrightPrincipal();
  75. List<Admin> selectTechprojectConsultant();
  76. List<Admin> selectTechprojectPrincipal();
  77. List<String> selectRoleByPrimaryKey(String uid);
  78. List<Admin> selectAccoutManager();
  79. List<Admin> selectTechnician();
  80. List<Admin> selectSalesman();
  81. List<Admin> selectContractManager();
  82. List<Admin> selectTechBroder();
  83. List<Admin> listAdminSelectBySuperAdmin();
  84. List<Admin> listAdminSelectByAreaAdmin(@Param("provinceList")List<Integer> provinceList, @Param("cityList")List<Integer> cityList);
  85. List<Admin> listAdminByName(@Param("name")String name);
  86. int insertn(Admin record);
  87. String selectUserNoBySuperiorId(String superiorId);
  88. int selectCountBySuperiorId(String superiorId);
  89. String selectIdByUserNo(String userNo);
  90. Admin selectAllByid(String id);
  91. String selectNameByid(String id);
  92. List<String>selectRolesByUid(String id);
  93. List<String>selectRolesIdByUid(String id);
  94. String selectStatusByMobile(@Param("mobile")String mobile);
  95. int deleteById(String id);
  96. Pagination<AppAdminListBo> consultantList();
  97. List<Admin> selectIDNBySuperiorId(String superiorId);
  98. String selectUserNoById(String superiorId);
  99. int updateByUserNo(Admin record);
  100. List<String>selectIdBySuperiorId(String superiorId);
  101. /**
  102. * 查询下级人员
  103. * @param adminId
  104. * @return
  105. */
  106. List<AdminListBo> selectSubList(@Param("adminId")String adminId);
  107. /**
  108. * 查询订单变更信息通知�??
  109. * @param orderNo
  110. * @return
  111. */
  112. Admin selectAdminByRoleId(@Param("roleId")String roleId);
  113. /**
  114. * 查询部门下的员工
  115. * @param departmentId
  116. * @param name
  117. * @return
  118. */
  119. List<AdminListBo> selectDepartmentStaff(String departmentId, String name);
  120. Admin selectAdminName(@Param("name")String name);
  121. List<Admin> selectAllAdmin(@Param("depId")String depId);
  122. int updateLockIds(@Param("lockIds")String lockIds);
  123. List<AdminListBo> getListDefaultPassword(String id);
  124. int getCountById(String id);
  125. AdminListBo getDeptNameByAid(String id);
  126. List<Admin> getAdminRoleList(String roleName);
  127. int addAdminContacts(AdminContacts a);
  128. int deleteFrequentContacts(String id);
  129. List<String> getaidFrequentContacts(String id);
  130. List<String> listNameByDepAndName(@Param("depId")String depId,@Param("roleName")String roleName);
  131. List<String> selectBySuperId(String aid);
  132. Admin selectFinanceAdminByOrderDep(String orderDep);
  133. String getPermission(String transferId);
  134. List<String> selectDepIdWithSpuerId(String superId);
  135. void getAllDep();
  136. List<String> getAdminRoleListByAid(String id);
  137. Admin selectByOpeid(String openid);
  138. Admin selectGetSuper(String aid);
  139. }