Blame view

src/main/java/com/huaheng/pc/system/systable/service/SysTableFieldInfoService.java 992 Bytes
mahuandong authored
1
2
3
4
package com.huaheng.pc.system.systable.service;

import com.huaheng.pc.system.systable.domain.SysTableFieldInfo;
import com.baomidou.mybatisplus.extension.service.IService;
mahuandong authored
5
6
7
8
9
10
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
mahuandong authored
11
12
13
14
15
 * Created by Enzo Cotter on 2020/3/21.
 */

public interface SysTableFieldInfoService extends IService<SysTableFieldInfo>{
mahuandong authored
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
    /**
     * 查询表中所有字段信息
     * @param tableName 表名
     * @param schema 数据库名
     * @return
     */
    List<Map<String, Object>> getColumnName(String tableName, String schema);

    /**
     * 添加字段信息
     * @param headId
     * @param tableName
     * @param schema
     * @return
     */

    boolean addColumn(Long headId, String tableName, String schema);
mahuandong authored
33
mahuandong authored
34
35
36
37
38
39
    /**
     * 根据表名查询字段信息
     * @param tableCode
     * @return
     */
    SysTableFieldInfo findTableFieldByTableCodeAndFieldCode(String tableCode, String fieldCode);
mahuandong authored
40
}