BpmShowRecordMapper.xml 1.81 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.runtime.dao.BpmShowRecordDao">

    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.hotent.runtime.model.BpmShowRecord">
        <id column="id_" property="id" />
    <result column="account_" property="account" />
    <result column="full_name_" property="fullName" />
    <result column="show_time_" property="showTime" />
    <result column="task_id_" property="taskId" />
    <result column="show_type_" property="showType" />
	<result column="action_" property="action" />
    <result column="reasons_" property="reasons" />
    <result column="create_by_" property="createBy" />
    <result column="create_time_" property="createTime" />
    <result column="create_org_id_" property="createOrgId" />
    <result column="update_by_" property="updateBy" />
    <result column="update_time_" property="updateTime" />
    <result column="tenant_id_" property="tenantId" />
    </resultMap>

    <!-- 通用查询结果列 -->
    <sql id="Base_Column_List">
        id_, account_, full_name_, show_time_, task_id_, show_type_, action_, reasons_, create_by_, create_time_, create_org_id_, update_by_, update_time_, tenant_id_
    </sql>

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