yumeng 4 years ago
parent
commit
83436d6e10

+ 1 - 1
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/report/mapper/xml/KsVideoReportMapper.xml

@@ -32,7 +32,6 @@
             AND t1.stat_date <= #{endDate}
         </if>
         GROUP BY t1.signature
-        ORDER BY ${target} ${order}
         ) t1
         LEFT JOIN ctop_etl_kuaishou_video_info t2
         ON t1.signature = t2.video_code
@@ -50,6 +49,7 @@
         <if test="shotId !=null and shotId != ''">
             AND t2.shot_id = #{shotId}
         </if>
+        ORDER BY ${target} ${order}
     </select>