From be9e92d2c30fdfeed4bdd3a5aea2c84bd93f61f4 Mon Sep 17 00:00:00 2001
From: liujie <1793218484@qq.com>
Date: 星期三, 15 十月 2025 16:23:24 +0800
Subject: [PATCH] bug修改

---
 ruoyi-system/src/main/resources/mapper/system/TSysOrderMapper.xml |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ruoyi-system/src/main/resources/mapper/system/TSysOrderMapper.xml b/ruoyi-system/src/main/resources/mapper/system/TSysOrderMapper.xml
index a5c39e3..6ccf7fd 100644
--- a/ruoyi-system/src/main/resources/mapper/system/TSysOrderMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/TSysOrderMapper.xml
@@ -51,7 +51,7 @@
                  left join t_sys_order_goods tsog on tso.id = tsog.order_id
                  left join t_erp_goods teg on tepg.goods_id = teg.id
         where tso.disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()}
-          and tso.clinic_id = #{clinicId}
+          and tso.clinic_id in <foreach collection="clinicIds" open="(" separator="," item="id" close=")">#{id}</foreach>
     </select>
     <select id="clinicSalesStatisticsTypeCount" resultType="java.lang.Integer">
         select count(1)
@@ -59,7 +59,7 @@
                  left join t_sys_order_goods tsog on tso.id = tsog.order_id
                  left join t_erp_goods teg on tepg.goods_id = teg.id
         where tso.disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()}
-          and tso.clinic_id = #{clinicId}
+          and tso.clinic_id in <foreach collection="clinicIds" open="(" separator="," item="id" close=")">#{id}</foreach>
         group by teg.type_id
     </select>
     <select id="clinicSalesStatisticsMoney" resultType="java.math.BigDecimal">

--
Gitblit v1.7.1