he2802 1 rok temu
rodzic
commit
aa3f952484

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

@@ -1409,7 +1409,7 @@
         UNION ALL
         SELECT
         og.tenant_id,
-        COUNT( * ) order_num2
+        COUNT( DISTINCT o.order_sn ) order_num2
         <if test="tenantId != null and tenantId != ''">
             ,'' AS create_sys_user_id, '' as create_username
         </if>
@@ -2101,7 +2101,7 @@
         tenant_id,
         1 AS order_type,
         SUM( order_received - order_refunded ) money2,
-        COUNT( DISTINCT o.order_sn ) order_num2
+        COUNT( * ) order_num2
         <if test="tenantId != null and tenantId != ''">
             , create_sys_user_id,any_value(create_username) as create_username
         </if>