dengsixing 2 роки тому
батько
коміт
a1c9365cd7
1 змінених файлів з 2 додано та 0 видалено
  1. 2 0
      src/main/resources/mapper/ucenter/SceneProMapper.xml

+ 2 - 0
src/main/resources/mapper/ucenter/SceneProMapper.xml

@@ -59,6 +59,7 @@
 
     <sql id="HasFolder">
         <if test="param.hasFolder == 1">
+            SELECT * FROM (
             SELECT id,name,1 as isFolder,type,parent_id as parentId,create_time,null as num,null as scene_name,null as 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 as build_type
             FROM t_folder WHERE rec_status = 'A' and type = #{param.folderType} and user_id =#{param.userId}
@@ -69,6 +70,7 @@
                 AND parent_id is null
             </if>
             order by create_time desc
+            ORDER BY create_time DESC) f
             UNION
         </if>
     </sql>