Blame view

src/main/resources/mybatis/system/SysTableFieldInfoMapper.xml 1.45 KB
mahuandong authored
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?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>
mahuandong authored
22
23
24
25
26
27
28

  <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>
mahuandong authored
29
</mapper>