BpmFreeProcessDefMapper.xml 1.21 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.hotent.bpm.persistence.dao.BpmFreeProcessDefDao">

    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.hotent.bpm.model.BpmFreeProcessDef">
        <id column="id_" property="id" />
    <result column="source_def_id_" property="sourceDefId" />
    <result column="proc_inst_id_" property="procInstId" />
    <result column="BPMN_XML_" property="bpmnXml" />
    </resultMap>

    <!-- 通用查询结果列 -->
    <sql id="Base_Column_List">
        id_, source_def_id_, proc_inst_id_, BPMN_XML_, TENANT_ID_
    </sql>

	<select id="selectPage" resultMap="BaseResultMap">
		select 
			<include refid="Base_Column_List"/> 
		from
			bpm_free_process_def
		${ew.customSqlSegment}
	</select>
	
	<select id="selectList" resultMap="BaseResultMap">
		select 
			<include refid="Base_Column_List"/> 
		from
			bpm_free_process_def
		${ew.customSqlSegment}
	</select>
	
	<select id="selectById" resultMap="BaseResultMap">
		select 
			<include refid="Base_Column_List"/> 
		from
			bpm_free_process_def
		where 
		    id_ = #{id}
	</select>
</mapper>