多单位版国产化地质资料管理系统
zhai
2025-12-18 3c6f6c1e3016e38146a4c46be6e7b625c35591f2
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.ViewSubtabMapper">
    <!-- 带页签信息返回结果 -->
    <resultMap id="WithSubtabResultMap" type="com.ruili.wcp.data.vo.config.ViewSubtabVO">
        <id column="id" jdbcType="BIGINT" property="id"/>
        <result column="view_id" property="viewId"/>
        <result column="subtab_id" property="subtabId"/>
        <result column="subtab_identify" property="subtabIdentify"/>
        <result column="subtab_name" property="subtabName"/>
        <result column="subtab_type" property="subtabType"/>
        <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.view_id,
               b.subtab_id,
               b.subtab_identify,
               b.subtab_name,
               b.subtab_type,
               a.create_time,
               a.last_modify_user_id,
               a.last_modify_user_name
        FROM cnf_view_subtab a,
             cnf_subtab b
        WHERE a.subtab_id = b.subtab_id
          and a.view_id = #{viewId}
        order by a.sort_num asc
    </select>
</mapper>