admin
2024-11-12 a6316ee0ab82a0f3fc2691f8b5ddbd79e1567086
提交 | 用户 | 时间
a6316e 1 package com.billion.generator.mapper;
A 2
3 import java.util.List;
4
5 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
6 import com.billion.generator.domain.GenTable;
7
8 /**
9  * 业务 数据层
10  * 
11  * @author ruoyi
12  */
13 public interface GenTableMapper extends BaseMapper<GenTable>
14 {
15     /**
16      * 查询业务列表
17      * 
18      * @param genTable 业务信息
19      * @return 业务集合
20      */
21     public List<GenTable> selectGenTableList(GenTable genTable);
22
23     /**
24      * 查询据库列表
25      * 
26      * @param genTable 业务信息
27      * @return 数据库表集合
28      */
29     public List<GenTable> selectDbTableList(GenTable genTable);
30
31     /**
32      * 查询据库列表
33      * 
34      * @param tableNames 表名称组
35      * @return 数据库表集合
36      */
37     public List<GenTable> selectDbTableListByNames(String[] tableNames);
38
39     /**
40      * 查询所有表信息
41      * 
42      * @return 表信息集合
43      */
44     public List<GenTable> selectGenTableAll();
45
46     /**
47      * 查询表ID业务信息
48      * 
49      * @param id 业务ID
50      * @return 业务信息
51      */
52     public GenTable selectGenTableById(Long id);
53
54     /**
55      * 查询表名称业务信息
56      * 
57      * @param tableName 表名称
58      * @return 业务信息
59      */
60     public GenTable selectGenTableByName(String tableName);
61
62     /**
63      * 新增业务
64      * 
65      * @param genTable 业务信息
66      * @return 结果
67      */
68     public int insertGenTable(GenTable genTable);
69
70     /**
71      * 修改业务
72      * 
73      * @param genTable 业务信息
74      * @return 结果
75      */
76     public int updateGenTable(GenTable genTable);
77
78     /**
79      * 批量删除业务
80      * 
81      * @param ids 需要删除的数据ID
82      * @return 结果
83      */
84     public int deleteGenTableByIds(Long[] ids);
85
86     /**
87      * 创建表
88      *
89      * @param sql 表结构
90      * @return 结果
91      */
92     public int createTable(String sql);
93 }