where+=$@" and a.MallBaseId = {model.MallBaseId} ";
}
if(model.Id>0)
{
where+=$@" and a.Id = {model.Id} ";
}
if(model.CreateBy>0)
{
where+=$@" and a.CreateBy = {model.CreateBy} ";
}
if(!string.IsNullOrWhiteSpace(model.Ids))
{
where+=$@" and a.Id in({model.Ids}) ";
}
}
stringsql=$@"SELECT e.`Name` as CreateByName,e.Photo as CrearteByPhoto,a.TenantId,a.MallBaseId,a.CreateBy,a.id,a.UserTeacher,a.Content,a.Files,a.LatAndLong,a.Address,a.CreateTime,a.CoverPhoto,a.FileType,a.IsOpen,a.`Status`,a.TalkId as tid from
Rb_Education_Dynamic a
LEFT JOIN rb_member_user e on e.Id = a.CreateBy {where}";