FormDataTemplateImportLogMapper.xml 1.38 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.form.persistence.dao.FormDataTemplateImportLogDao">

    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.hotent.form.model.FormDataTemplateImportLog">
        <id column="ID_" property="id" />
    <result column="IMPORT_ACCOUNT_" property="importAccount" />
    <result column="IMPORT_NAME_" property="importName" />
    <result column="IMPORT_TIME_" property="importTime" />
    <result column="STATUS_" property="status" />
    <result column="TENANT_ID_" property="tenantId" />
    </resultMap>

    <!-- 通用查询结果列 -->
    <sql id="Base_Column_List">
        ID_, IMPORT_ACCOUNT_, IMPORT_NAME_, IMPORT_TIME_, STATUS_, TENANT_ID_,REASON_
    </sql>

	<select id="selectPage" resultMap="BaseResultMap">
		select
			<include refid="Base_Column_List"/>
		from
			FORM_DATA_TEMPLATE_IMPORT_LOG
		${ew.customSqlSegment}
	</select>

	<select id="selectList" resultMap="BaseResultMap">
		select
			<include refid="Base_Column_List"/>
		from
			FORM_DATA_TEMPLATE_IMPORT_LOG
		${ew.customSqlSegment}
	</select>

	<select id="selectById" resultMap="BaseResultMap">
		select
			<include refid="Base_Column_List"/>
		from
			FORM_DATA_TEMPLATE_IMPORT_LOG
		where
		    ID_ = ${id}
	</select>
</mapper>