浏览代码

操作记录-消耗top10修改分组排序

yangzian 2 年之前
父节点
当前提交
34dd36ec88

+ 2 - 0
jeecg-boot-material-view/src/main/java/org/jeecg/ctop/material/mapper/xml/KuaishouOperationRecordMapper.xml

@@ -49,6 +49,7 @@
          stat_date >= #{startTime}
          stat_date >= #{startTime}
         AND stat_date <= #{endTime}
         AND stat_date <= #{endTime}
         AND advertiser_id = #{advertiserId}
         AND advertiser_id = #{advertiserId}
+        GROUP BY unit_id
         ORDER BY sum( charge ) DESC
         ORDER BY sum( charge ) DESC
         LIMIT 10
         LIMIT 10
     </select>
     </select>
@@ -101,6 +102,7 @@
             stat_date &gt;= #{startTime}
             stat_date &gt;= #{startTime}
           AND stat_date &lt;= #{endTime}
           AND stat_date &lt;= #{endTime}
           AND advertiser_id = #{advertiserId}
           AND advertiser_id = #{advertiserId}
+        GROUP BY unit_id
         ORDER BY sum( charge ) DESC
         ORDER BY sum( charge ) DESC
             LIMIT 10
             LIMIT 10
     </select>
     </select>