he2802 1 年之前
父節點
當前提交
165b2a0a82
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      zhongzheng-system/src/main/resources/mapper/modules/top/TopOldOrderMapper.xml

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

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