@@ -1707,7 +1707,7 @@ FROM RB_Member_User AS a LEFT JOIN rb_miai_baseinfo AS b ON a.Id = b.UserId) as
{
stringsql=$@" select count(0) as count from RB_Member_User u
inner join rb_distributor_info d on u.Id = d.UserId
where u.TenantId={tenantId} and u.MallBaseId={mallBaseId} and d.TenantId={tenantId} and d.AuditStatus =2 and u.CreateDate <='{startTime} 23:59:59'";
where u.TenantId={tenantId} and u.MallBaseId={mallBaseId} and d.TenantId={tenantId} and d.Status =0 and d.AuditStatus =2 and u.CreateDate <='{startTime} 23:59:59'";