where+=$@" and a.{nameof(RB_Supplier.TenantId)}={dmodel.TenantId}";
...
...
@@ -37,7 +37,7 @@ namespace Mall.Repository.User
{
where+=$@" and a.{nameof(RB_Supplier.Name)} like '%{dmodel.Name}%'";
}
stringsql=$@"select a.*,b.`Name` as IntroducerName from rb_distributor_info as a LEFT JOIN rb_member_user as b on a.Introducer=b.UserId {where} order by Id desc";
stringsql=$@"select a.*,b.`Name` as IntroducerName from rb_distributor_info as a LEFT JOIN rb_member_user as b on a.Introducer=b.UserId {where} order by a.Id desc";
where+=$@" and a.{nameof(RB_Supplier.TenantId)}={dmodel.TenantId}";
...
...
@@ -65,7 +65,7 @@ namespace Mall.Repository.User
{
where+=$@" and a.{nameof(RB_Supplier.ID)} in({dmodel.SupplierIds})";
}
stringsql=$@"select a.*,b.`Name` as IntroducerName from {TableName} as a LEFT JOIN rb_distributor_info as b on a.Introducer=b.UserId {where} order by Id desc";
stringsql=$@"select a.*,b.`Name` as IntroducerName from {TableName} as a LEFT JOIN rb_distributor_info as b on a.Introducer=b.UserId {where} order by a.Id desc";