<?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.SysTableFieldInfoMapper"> <resultMap id="BaseResultMap" type="com.huaheng.pc.system.systable.domain.SysTableFieldInfo"> <!--@mbg.generated--> <!--@Table sys_table_field_info--> <id column="id" jdbcType="BIGINT" property="id" /> <result column="head_id" jdbcType="BIGINT" property="headId" /> <result column="field_code" jdbcType="VARCHAR" property="fieldCode" /> <result column="filed_name" jdbcType="VARCHAR" property="filedName" /> <result column="filed_funcation" jdbcType="VARCHAR" property="filedFuncation" /> <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, head_id, field_code, filed_name, filed_funcation, created, create_by, last_updated, last_update_by </sql> <select id="getColumnName" resultType="java.util.Map"> select COLUMN_NAME, DATA_TYPE, COLUMN_COMMENT from INFORMATION_SCHEMA.COLUMNS where table_name = #{tableName} AND table_schema = #{schema} </select> </mapper>