GenTableMapper.java 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. package com.xunmei.gen.mapper;
  2. import com.baomidou.mybatisplus.core.mapper.BaseMapper;
  3. import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
  4. import com.xunmei.gen.domain.GenTable;
  5. import com.xunmei.system.api.domain.SysArea;
  6. import org.apache.ibatis.annotations.Param;
  7. import java.util.List;
  8. /**
  9. * 业务 数据层
  10. *
  11. * @author xunmei
  12. */
  13. public interface GenTableMapper extends BaseMapper<GenTable>
  14. {
  15. /**
  16. * 查询业务列表
  17. *
  18. * @param genTable 业务信息
  19. * @return 业务集合
  20. */
  21. List<GenTable> selectGenTableList(GenTable genTable);
  22. /**
  23. * 查询据库列表
  24. *
  25. * @param genTable 业务信息
  26. * @return 数据库表集合
  27. */
  28. List<GenTable> selectDbTableList(GenTable genTable);
  29. /**
  30. * 查询据库列表
  31. *
  32. * @param tableNames 表名称组
  33. * @return 数据库表集合
  34. */
  35. List<GenTable> selectDbTableListByNames(String[] tableNames);
  36. /**
  37. * 查询所有表信息
  38. *
  39. * @return 表信息集合
  40. */
  41. List<GenTable> selectGenTableAll();
  42. /**
  43. * 查询表ID业务信息
  44. *
  45. * @param id 业务ID
  46. * @return 业务信息
  47. */
  48. GenTable selectGenTableById(Long id);
  49. /**
  50. * 查询表名称业务信息
  51. *
  52. * @param tableName 表名称
  53. * @return 业务信息
  54. */
  55. GenTable selectGenTableByName(String tableName);
  56. /**
  57. * 新增业务
  58. *
  59. * @param genTable 业务信息
  60. * @return 结果
  61. */
  62. int insertGenTable(GenTable genTable);
  63. /**
  64. * 修改业务
  65. *
  66. * @param genTable 业务信息
  67. * @return 结果
  68. */
  69. int updateGenTable(GenTable genTable);
  70. /**
  71. * 批量删除业务
  72. *
  73. * @param ids 需要删除的数据ID
  74. * @return 结果
  75. */
  76. int deleteGenTableByIds(Long[] ids);
  77. Page<GenTable> selectPageData(Page<GenTable> page, @Param("genTable") GenTable genTable);
  78. }