Ver código fonte

fix: 企微为本公司

dongdong.xiang 1 semana atrás
pai
commit
d5790e31eb

+ 7 - 1
fs-service-system/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">
+                       AND company_id = ${companyId}
+                    </if>
+                </where>
+        ) AS qw_member_num
     </select>
     <select id="getCurrentBalanceCompanyId" resultType="java.math.BigDecimal">
         select sum(money) from company