Bläddra i källkod

优化场景列表接口

dengsixing 2 år sedan
förälder
incheckning
cabcab50e1
1 ändrade filer med 2 tillägg och 1 borttagningar
  1. 2 1
      src/main/resources/mapper/ucenter/SceneProMapper.xml

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

@@ -22,8 +22,8 @@
     </select>
 
     <select id="pageListAndFolder" resultType="com.fdkankan.ucenter.vo.response.SceneVo">
-        SELECT * FROM (
         <include refid="HasFolder"></include>
+        SELECT * FROM (
         SELECT  p.id ,null as name ,0 as isFolder,null as type,null as parentId ,p.create_time,num,scene_name,scene_dec,
         p.status,pay_status,thumb,web_site,0 as is_upgrade,sn_code,view_count,p.build_type
         FROM t_scene_pro p 
@@ -68,6 +68,7 @@
             <if test="param.folderId == null">
                 AND parent_id is null
             </if>
+            order by create_time desc
             UNION
         </if>
     </sql>