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>