多单位版国产化地质资料管理系统
zs
2025-12-18 4f0d9bde31a80f6279e26466250da7716eec627f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?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>