TRegionMapper.java 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. package com.ruoyi.system.mapper;
  2. import java.util.List;
  3. import com.ruoyi.common.annotation.DataSource;
  4. import com.ruoyi.common.enums.DataSourceType;
  5. import com.ruoyi.system.domain.TRegion;
  6. import com.ruoyi.system.domain.TRegionVo;
  7. /**
  8. * 行政区域Mapper接口
  9. *
  10. * @author zhengjie
  11. * @date 2023-08-15
  12. */
  13. public interface TRegionMapper {
  14. /**
  15. * 查询行政区域
  16. *
  17. * @param id 行政区域主键
  18. * @return 行政区域
  19. */
  20. public TRegion selectTRegionById(Integer id);
  21. /**
  22. * 查询行政区域
  23. *
  24. * @param parentId 行政区域主键
  25. * @return 行政区域
  26. */
  27. public TRegion selectTRegionByParentId(Integer parentId);
  28. /**
  29. * 查询行政区域列表
  30. *
  31. * @param tRegion 行政区域
  32. * @return 行政区域集合
  33. */
  34. public List<TRegion> selectTRegionList(TRegion tRegion);
  35. /**
  36. * 查询行政区域列表-省
  37. *
  38. * @return 行政区域集合
  39. */
  40. public List<TRegionVo> selectTRegionListV1();
  41. /**
  42. * 查询行政区域列表-市
  43. *
  44. * @return 行政区域集合
  45. */
  46. public List<TRegionVo> selectTRegionListV2(String province_code);
  47. /**
  48. * 查询行政区域列表-区
  49. *
  50. * @return 行政区域集合
  51. */
  52. public List<TRegionVo> selectTRegionListV3(String city_code);
  53. /**
  54. * 查询行政区域列表-办事处
  55. *
  56. * @return 行政区域集合
  57. */
  58. public List<TRegionVo> selectTRegionListV4(String county_code);
  59. /**
  60. * 查询行政区域列表-居委会
  61. *
  62. * @return 行政区域集合
  63. */
  64. public List<TRegionVo> selectTRegionListV5(String town_code);
  65. /**
  66. * 新增行政区域
  67. *
  68. * @param tRegion 行政区域
  69. * @return 结果
  70. */
  71. public int insertTRegion(TRegion tRegion);
  72. /**
  73. * 修改行政区域
  74. *
  75. * @param tRegion 行政区域
  76. * @return 结果
  77. */
  78. public int updateTRegion(TRegion tRegion);
  79. /**
  80. * 删除行政区域
  81. *
  82. * @param id 行政区域主键
  83. * @return 结果
  84. */
  85. public int deleteTRegionById(Integer id);
  86. /**
  87. * 批量删除行政区域
  88. *
  89. * @param ids 需要删除的数据主键集合
  90. * @return 结果
  91. */
  92. public int deleteTRegionByIds(Integer[] ids);
  93. }