瀏覽代碼

企微数量为本公司

dongdong.xiang 1 月之前
父節點
當前提交
f9c2dcbc2d
共有 1 個文件被更改,包括 7 次插入1 次删除
  1. 7 1
      fs-service/src/main/resources/mapper/statis/ConsumptionBalanceMapper.xml

+ 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