|
|
@@ -310,6 +310,40 @@
|
|
|
</if>
|
|
|
ORDER BY sm.level, sm.sort
|
|
|
</select>
|
|
|
+
|
|
|
+ <select id="findList3" resultType="com.sckw.system.model.vo.res.KwsMenuResVo"
|
|
|
+ parameterType="com.sckw.system.model.pojo.FindMenuTreePojo" >
|
|
|
+ select distinct
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from kws_menu sm
|
|
|
+ left join kws_menu_rights smr on sm.id = smr.menu_id
|
|
|
+ where sm.del_flag = 0 and smr.del_flag = 0
|
|
|
+ <if test="clientType != null">
|
|
|
+ and sm.client_type = #{clientType}
|
|
|
+ </if>
|
|
|
+ <if test="name != null and name != ''">
|
|
|
+ and sm.name = #{name, jdbcType=VARCHAR}
|
|
|
+ </if>
|
|
|
+ <if test="entTypeList != null and entTypeList.size() > 0">
|
|
|
+ and
|
|
|
+ <foreach collection="entTypeList" item="item" open="(" close=")" separator=" or ">
|
|
|
+ using_roles like concat('%', #{item}, '%')
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+ <if test="entId != null">
|
|
|
+ and smr.ent_id = #{entId}
|
|
|
+ </if>
|
|
|
+ <if test="roleIds != null and roleIds.size() > 0 and clientType != 3">
|
|
|
+ and smr.role_id in
|
|
|
+ <foreach collection="roleIds" separator="," open="(" close=")" item="item">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+ <if test="type != null">
|
|
|
+ and sm.type = #{type}
|
|
|
+ </if>
|
|
|
+ ORDER BY sm.level, sm.sort
|
|
|
+ </select>
|
|
|
<select id="findList1" resultType="com.sckw.system.model.vo.res.KwsMenuResVo"
|
|
|
parameterType="com.sckw.system.model.pojo.FindMenuTreePojo" >
|
|
|
select distinct
|