|
@@ -29,7 +29,7 @@
|
|
|
and pid = #{menuQuery.pid}
|
|
|
</if>
|
|
|
<if test="menuQuery.title != null and menuQuery.title != ''">
|
|
|
- and title like concat('%',#{menuQuery.title},'%')
|
|
|
+ and title like '%' || #{menuQuery.title} || '%'
|
|
|
</if>
|
|
|
</sql>
|
|
|
|
|
@@ -46,14 +46,14 @@
|
|
|
</sql>
|
|
|
|
|
|
<sql id="getTree_oracle">
|
|
|
- SELECT * FROM SYS_MENU
|
|
|
- START WITH
|
|
|
+ SELECT DISTINCT * FROM SYS_MENU
|
|
|
+ START WITH 0=0
|
|
|
<include refid="menuWheres"></include>
|
|
|
CONNECT BY PRIOR pid = id
|
|
|
</sql>
|
|
|
|
|
|
<select id="getTree" resultMap="BaseResultMap">
|
|
|
- <include refid="getTree_mysql"></include>
|
|
|
+ <include refid="getTree_oracle"></include>
|
|
|
</select>
|
|
|
|
|
|
|