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>