Browse Source

企微数量为本公司

dongdong.xiang 1 month ago
parent
commit
f9c2dcbc2d

+ 7 - 1
fs-service/src/main/resources/mapper/statis/ConsumptionBalanceMapper.xml

@@ -380,7 +380,13 @@
                                     </if>
                                 </where>
                 ) AS black_num,
-                (select COUNT(*) FROM qw_user) AS qw_member_num
+                (select COUNT(*) FROM qw_user
+                    <where>
+                        <if test="companyId != null">
+                            company_id = ${companyId}
+                        </if>
+                    </where>
+        ) AS qw_member_num
     </select>
     <select id="getCurrentBalanceCompanyId" resultType="java.math.BigDecimal">
         select sum(money) from company