<?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.ruili.wcp.dao.config.FormSubtabMapper">
|
|
<!-- 带页签信息返回结果 -->
|
<resultMap id="WithSubtabResultMap" type="com.ruili.wcp.data.vo.config.FormSubtabVO">
|
<id column="id" jdbcType="BIGINT" property="id"/>
|
<result column="form_id" property="formId"/>
|
<result column="subtab_id" property="subtabId"/>
|
<result column="subtab_identify" property="subtabIdentify"/>
|
<result column="subtab_name" property="subtabName"/>
|
<result column="create_time" property="createTime"/>
|
<result column="last_modify_user_id" property="lastModifyUserId"/>
|
<result column="last_modify_user_name" property="lastModifyUserName"/>
|
</resultMap>
|
|
<!-- 查询带页签信息SQL -->
|
<select id="selectWithSubtab" parameterType="map" resultMap="WithSubtabResultMap">
|
SELECT a.id,
|
a.form_id,
|
b.subtab_id,
|
b.subtab_identify,
|
b.subtab_name,
|
a.create_time,
|
a.last_modify_user_id,
|
a.last_modify_user_name
|
FROM cnf_form_subtab a,
|
cnf_subtab b
|
WHERE a.subtab_id = b.subtab_id
|
and a.form_id = #{formId}
|
order by a.sort_num asc
|
</select>
|
</mapper>
|