<?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.SubtabMapper">
|
<!-- 查询带操作信息SQL -->
|
<select id="getSubtabListByViewId" parameterType="Long" resultType="com.ruili.wcp.data.entity.config.Subtab">
|
SELECT a.* FROM
|
cnf_subtab a,cnf_view_subtab b WHERE a.subtab_id=b.subtab_id and b.view_id=#{viewId}
|
order by b.sort_num asc
|
</select>
|
|
<!-- 根据模块ID获取页签最大排序号 -->
|
<select id="selectMaxSortNum" parameterType="Long" resultType="int">
|
select
|
ifnull(max(sort_num),0) sortNum
|
FROM cnf_subtab where module_id = #{moduleId}
|
</select>
|
|
<!-- 根据模块ID获取页签最大排序号 -->
|
<select id="selectMaxSortNum" parameterType="Long" resultType="int" databaseId="oracle">
|
select
|
NVL(max(sort_num),0) sortNum
|
FROM cnf_subtab where module_id = #{moduleId}
|
</select>
|
|
<!-- 根据模块ID获取页签最大排序号 -->
|
<select id="selectMaxSortNum" parameterType="Long" resultType="int" databaseId="kingbasees">
|
select
|
NVL(max(sort_num),0) sortNum
|
FROM cnf_subtab where module_id = #{moduleId}
|
</select>
|
|
<!-- 根据模块ID获取页签最大排序号 -->
|
<select id="selectMaxSortNum" parameterType="Long" resultType="int" databaseId="sqlServer">
|
select
|
isnull(max(sort_num),0) sortNum
|
FROM cnf_subtab where module_id = #{moduleId}
|
</select>
|
</mapper>
|