lyhzzz 2 年之前
父節點
當前提交
5058a53f5e
共有 1 個文件被更改,包括 8 次插入1 次删除
  1. 8 1
      src/main/resources/mapper/ucenter/SceneProMapper.xml

+ 8 - 1
src/main/resources/mapper/ucenter/SceneProMapper.xml

@@ -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>
+
             <if test="param.folderId!=null">
                 AND parent_id = #{param.folderId}
             </if>