Explorar o código

账户维度-添加排序

zhaoxian %!s(int64=4) %!d(string=hai) anos
pai
achega
619433feed

+ 2 - 0
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/report/mapper/xml/EtlKuaishouAudienceAccountDailyMapper.xml

@@ -96,6 +96,7 @@
         AND audience_type = #{audienceType}
         AND audience_type = #{audienceType}
         AND account_id = #{accountId}
         AND account_id = #{accountId}
         group by stat_date,${type}
         group by stat_date,${type}
+        order by stat_date
     </select>
     </select>
 
 
     <select id="getSceneEveryDayInfo" resultType="com.alibaba.fastjson.JSONObject">
     <select id="getSceneEveryDayInfo" resultType="com.alibaba.fastjson.JSONObject">
@@ -125,6 +126,7 @@
         AND stat_date &lt;= DATE_FORMAT(date_sub(now(), interval 2 day), '%Y-%m-%d')
         AND stat_date &lt;= DATE_FORMAT(date_sub(now(), interval 2 day), '%Y-%m-%d')
         AND account_id = #{accountId}
         AND account_id = #{accountId}
         group by stat_date,ad_scene
         group by stat_date,ad_scene
+        order by stat_date
     </select>
     </select>
 
 
     <select id="getSceneInfo" resultType="com.alibaba.fastjson.JSONObject">
     <select id="getSceneInfo" resultType="com.alibaba.fastjson.JSONObject">