OrganizationManagementMapper.java 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. package com.goafanti.common.dao;
  2. import java.util.List;
  3. import com.goafanti.organization.bo.OrganizationListOut;
  4. import com.goafanti.admin.bo.AdminListBo;
  5. import com.goafanti.common.model.OrganizationManagement;
  6. import com.goafanti.common.model.OrganizationManagementExample;
  7. import org.apache.ibatis.annotations.Param;
  8. public interface OrganizationManagementMapper {
  9. /**
  10. * This method was generated by MyBatis Generator. This method corresponds to the database table organization_management
  11. * @mbg.generated Thu Nov 30 11:09:29 CST 2017
  12. */
  13. long countByExample(OrganizationManagementExample example);
  14. /**
  15. * This method was generated by MyBatis Generator. This method corresponds to the database table organization_management
  16. * @mbg.generated Thu Nov 30 11:09:29 CST 2017
  17. */
  18. int deleteByExample(OrganizationManagementExample example);
  19. /**
  20. * This method was generated by MyBatis Generator. This method corresponds to the database table organization_management
  21. * @mbg.generated Thu Nov 30 11:09:29 CST 2017
  22. */
  23. int deleteByPrimaryKey(String id);
  24. /**
  25. * This method was generated by MyBatis Generator. This method corresponds to the database table organization_management
  26. * @mbg.generated Thu Nov 30 11:09:29 CST 2017
  27. */
  28. int insert(OrganizationManagement record);
  29. /**
  30. * This method was generated by MyBatis Generator. This method corresponds to the database table organization_management
  31. * @mbg.generated Thu Nov 30 11:09:29 CST 2017
  32. */
  33. int insertSelective(OrganizationManagement record);
  34. /**
  35. * This method was generated by MyBatis Generator. This method corresponds to the database table organization_management
  36. * @mbg.generated Thu Nov 30 11:09:29 CST 2017
  37. */
  38. List<OrganizationManagement> selectByExample(OrganizationManagementExample example);
  39. /**
  40. * This method was generated by MyBatis Generator. This method corresponds to the database table organization_management
  41. * @mbg.generated Thu Nov 30 11:09:29 CST 2017
  42. */
  43. OrganizationManagement selectByPrimaryKey(String id);
  44. /**
  45. * This method was generated by MyBatis Generator. This method corresponds to the database table organization_management
  46. * @mbg.generated Thu Nov 30 11:09:29 CST 2017
  47. */
  48. int updateByExampleSelective(@Param("record") OrganizationManagement record,
  49. @Param("example") OrganizationManagementExample example);
  50. /**
  51. * This method was generated by MyBatis Generator. This method corresponds to the database table organization_management
  52. * @mbg.generated Thu Nov 30 11:09:29 CST 2017
  53. */
  54. int updateByExample(@Param("record") OrganizationManagement record,
  55. @Param("example") OrganizationManagementExample example);
  56. /**
  57. * This method was generated by MyBatis Generator. This method corresponds to the database table organization_management
  58. * @mbg.generated Thu Nov 30 11:09:29 CST 2017
  59. */
  60. int updateByPrimaryKeySelective(OrganizationManagement record);
  61. /**
  62. * This method was generated by MyBatis Generator. This method corresponds to the database table organization_management
  63. * @mbg.generated Thu Nov 30 11:09:29 CST 2017
  64. */
  65. int updateByPrimaryKey(OrganizationManagement record);
  66. List<OrganizationListOut> selectSuperId();
  67. /**
  68. * 新增
  69. * @param olo
  70. * @return
  71. */
  72. int insert1(OrganizationListOut olo);
  73. /**
  74. * 根据组织名称查组织编号
  75. */
  76. String selectDepNoByName(String name);
  77. /**
  78. * 查询相同上级下编号数量
  79. */
  80. int selectDepNoCount(String superId);
  81. /**
  82. * 模糊查询负责人名称
  83. */
  84. List<AdminListBo> selectName(String name);
  85. OrganizationListOut selectAllById(String id);
  86. int deleteById(String id);
  87. String selectAdminNameById(String name);
  88. String selectIdByDepNo(String depNo);
  89. /**
  90. * 查询有相同上级组织的信息
  91. * @param superId
  92. * @return
  93. */
  94. List<OrganizationListOut> selectIDNBySuperId(String superId);
  95. int updateByNumber(OrganizationListOut olo);
  96. int selectCountBySuperId(String superId);
  97. String selectIdByName(String name);
  98. String selectNameById(String id);
  99. String selectDepNoById(String id);
  100. }