@@ -64,7 +64,14 @@
scene_dec,
null as status,null as pay_status,null as thumb,null as web_site,null as is_upgrade,null as sn_code,null as
view_count, null build_type
- FROM t_folder WHERE rec_status = 'A' and type = #{param.folderType} and user_id =#{param.userId}
+ FROM t_folder WHERE rec_status = 'A' and user_id =#{param.userId}
+ <if test="param.folderType!=null and param.folderType == 1">
+ and (type = #{param.folderType} or type = 3)
+ </if>
+ <if test="param.folderType!=null and param.folderType != 1">
+ and type = #{param.folderType}
+
<if test="param.folderId!=null">
AND parent_id = #{param.folderId}
</if>