SysTableInfoMapper.xml 1.41 KB
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.huaheng.pc.system.systable.mapper.SysTableInfoMapper">
  <resultMap id="BaseResultMap" type="com.huaheng.pc.system.systable.domain.SysTableInfo">
    <!--@mbg.generated-->
    <!--@Table sys_table_info-->
    <id column="id" jdbcType="BIGINT" property="id" />
    <result column="warehouse_code" jdbcType="VARCHAR" property="warehouseCode" />
    <result column="table_code" jdbcType="VARCHAR" property="tableCode" />
    <result column="table_name" jdbcType="VARCHAR" property="tableName" />
    <result column="table_funcation" jdbcType="LONGVARCHAR" property="tableFuncation" />
    <result column="created" jdbcType="TIMESTAMP" property="created" />
    <result column="created_by" jdbcType="VARCHAR" property="createdBy" />
    <result column="last_updated" jdbcType="TIMESTAMP" property="lastUpdated" />
    <result column="last_update_by" jdbcType="VARCHAR" property="lastUpdateBy" />
  </resultMap>
  <sql id="Base_Column_List">
    <!--@mbg.generated-->
    id, warehouse_code, table_code, `table_name`, table_funcation, created, created_by, 
    last_updated, last_update_by
  </sql>

  <select id="showTable" resultType="java.util.Map">
    select table_name ,TABLE_COMMENT from INFORMATION_SCHEMA.TABLES where table_schema = #{dbSchema}
  </select>
</mapper>