Explorar o código

王垒、李娜效果报表

hcst_sunzhen %!s(int64=4) %!d(string=hai) anos
pai
achega
a7158c6137

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

@@ -691,6 +691,7 @@
                 #{item}
                 #{item}
             </foreach>
             </foreach>
             group by b.project_id
             group by b.project_id
+            order by sum(a.charge) desc
         ) m
         ) m
         <if test="yn = 1">
         <if test="yn = 1">
         where
         where
@@ -776,6 +777,7 @@
         </if>
         </if>
 
 
         group by a.campaign_id
         group by a.campaign_id
+        order by sum(a.charge) desc
         ) m
         ) m
 
 
         <if test="yn = 1">
         <if test="yn = 1">
@@ -864,6 +866,7 @@
                 </foreach>
                 </foreach>
             </if>
             </if>
             group by unit_id
             group by unit_id
+            order by sum(a.charge) desc
             ) m
             ) m
         <if test="yn = 1">
         <if test="yn = 1">
             where
             where
@@ -1048,6 +1051,7 @@
                 </foreach>
                 </foreach>
             </if>
             </if>
             group by a.creative_id
             group by a.creative_id
+            order by sum(a.charge) desc
         )m
         )m
         <if test="yn=1">
         <if test="yn=1">
             where m.charge != 0
             where m.charge != 0