1.0
xin
2025-04-15 e718afd02965c6a4018506acb1ae99baca0c5645
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?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.oying.mapper.GenConfigMapper">
    <resultMap id="BaseResultMap" type="com.oying.domain.GenConfig">
        <id column="config_id" property="id"/>
        <result column="table_name" property="tableName"/>
        <result column="api_alias" property="apiAlias"/>
        <result column="pack" property="pack"/>
        <result column="module_name" property="moduleName"/>
        <result column="path" property="path"/>
        <result column="api_path" property="apiPath"/>
        <result column="author" property="author"/>
        <result column="prefix" property="prefix"/>
        <result column="cover" property="cover"/>
    </resultMap>
 
    <sql id="Base_Column_List">
        config_id, table_name, api_alias, pack, module_name, path, api_path, author, prefix, cover
    </sql>
 
    <select id="findByTableName" resultMap="BaseResultMap">
        SELECT
        <include refid="Base_Column_List"/>
        FROM code_config
        WHERE table_name = #{tableName}
    </select>
</mapper>