Prechádzať zdrojové kódy

优化场景列表接口

dengsixing 2 rokov pred
rodič
commit
a1c9365cd7

+ 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>