|
@@ -5,10 +5,11 @@
|
5
|
5
|
<select id="listModulesByBelong" resultType="com.xhkjedu.sapi.model.system.TModule">
|
6
|
6
|
SELECT m.moduleid,m.modulename,m.moduleurl,m.moduleico,m.modulepid,m.morder,m.minout
|
7
|
7
|
,m.comm,m.mclass,m.level,m.mabbrevname,m.mdefault,m.belong,m.belongcode,m.display
|
8
|
|
- FROM t_moduledefault m where m.belong=#{belong}
|
|
8
|
+ FROM t_moduledefault m where ((m.belong=#{belong}
|
|
9
|
+ <if test="belongcode!=null and belongcode!=0">and m.belongcode=#{belongcode}</if>)
|
|
10
|
+ or (m.belong=#{belong} and m.level=1))
|
9
|
11
|
<if test="display!=null">and m.display=#{display}</if>
|
10
|
|
- <if test="belongcode!=null and belongcode!=0">and m.belongcode=#{belongcode}</if>
|
11
|
|
- ORDER BY m.morder
|
|
12
|
+ group by m.moduleid ORDER BY m.morder
|
12
|
13
|
</select>
|
13
|
14
|
|
14
|
15
|
<!--获取所有模块-->
|