DocumentationTableMapper.xml
1.85 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?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.hotent.documentation.dao.DocumentationTableDao">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.hotent.documentation.model.DocumentationTable">
<id column="ID_" property="id" />
<result column="TABLE_NAME_" property="tableName" />
<result column="DML_" property="dml" />
<result column="DDL_" property="ddl" />
<result column="SYSTEM_" property="system" />
<result column="START_" property="start" />
<result column="ORDER_" property="order" />
<result column="UPDATE_BY_" property="updateBy" />
<result column="INFO_" property="info" />
<result column="UPDATE_TIME_" property="updateTime" />
<result column="PARENT_ID_" property="parentId" />
<result column="FIELD_" property="field" />
<result column="PARENT_FIELD_" property="parentField" />
<result column="TIME_KEY_" property="timeKey" />
<result column="TENANT_ID_" property="tenantId" />
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
ID_, TABLE_NAME_, DML_, DDL_, SYSTEM_, START_, ORDER_, UPDATE_BY_, INFO_, UPDATE_TIME_, PARENT_ID_, FIELD_, PARENT_FIELD_, TIME_KEY_, TENANT_ID_
</sql>
<select id="selectPage" resultMap="BaseResultMap">
select
<include refid="Base_Column_List"/>
from
bpm_documentation_table
${ew.customSqlSegment}
</select>
<select id="selectList" resultMap="BaseResultMap">
select
<include refid="Base_Column_List"/>
from
bpm_documentation_table
${ew.customSqlSegment}
</select>
<select id="selectById" resultMap="BaseResultMap">
select
<include refid="Base_Column_List"/>
from
bpm_documentation_table
where
ID_ = #{id}
</select>
</mapper>