he2802 1 rok pred
rodič
commit
6659b9a6a5

+ 1 - 1
zhongzheng-system/src/main/resources/mapper/modules/top/TopOldOrderMapper.xml

@@ -2428,7 +2428,7 @@
     <select id="getStatisticsBusinessView" parameterType="com.zhongzheng.modules.top.order.bo.TopOrderStatisticsViewBo"
             resultType="com.zhongzheng.modules.top.order.vo.TopOrderStatisticsTwoVo">
         SELECT
-        COUNT(a.order_sn) AS orderNum,
+        COUNT(DISTINCT a.order_sn) AS orderNum,
         SUM(a.money) AS money,
         any_value(a.timeStr) AS orderTime,
         any_value(a.create_username) AS create_username,