ActivtyTemplatedFloorMapper.xml
1.31 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.yohoufo.dal.resource.ActivtyTemplatedFloorMapper" >
<resultMap id="BaseResultMap" type="com.yohoufo.dal.resource.model.ActivtyTemplatedFloor" >
<id column="id" property="id" jdbcType="INTEGER" />
<result column="activty_templated_id" property="activtyTemplatedId" jdbcType="INTEGER" />
<result column="order" property="order" jdbcType="INTEGER" />
<result column="is_del" property="isDel" jdbcType="INTEGER" />
</resultMap>
<resultMap id="ResultMapWithBLOBs" type="com.yohoufo.dal.resource.model.ActivtyTemplatedFloor" extends="BaseResultMap" >
<result column="module_data" property="moduleData" jdbcType="LONGVARCHAR" />
</resultMap>
<sql id="Base_Column_List" >
id, activty_templated_id, order, is_del
</sql>
<sql id="Blob_Column_List" >
module_data
</sql>
<select id="selectByTemplatedId" resultMap="ResultMapWithBLOBs" parameterType="java.lang.Integer" >
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from activty_templated_floor
where activty_templated_id = #{activtyTemplatedId,jdbcType=INTEGER} AND is_del = 0 ORDER BY order ASC
</select>
</mapper>