MagicTemplateConfigInfoMapper.java 790 Bytes
package cn.com.glsx.entmicro.mapper;

import cn.com.glsx.entmicro.entity.magic.MagicTemplateConfigInfo;
import cn.com.glsx.entmicro.entity.magic.TableConfig;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.oreframework.datasource.mybatis.mapper.OreMapper;

import java.util.List;

@Mapper
public interface MagicTemplateConfigInfoMapper extends OreMapper<MagicTemplateConfigInfo> {
    List<MagicTemplateConfigInfo> findByConfigId(Integer id);

    /**
     * 表是否存在
     * @param tableName
     * @return
     */
    Integer tableNameExists(@Param("tableName") String tableName);


    /**
     * 创建表
     * @param tableConfig
     * @return
     */
    Integer createTable(@Param("tableConfig") TableConfig tableConfig);
}