he2802 1 년 전
부모
커밋
6659b9a6a5
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

@@ -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,