Commit 9773ac18 authored by 吴春's avatar 吴春

提交代码

parent b9624b04
...@@ -197,14 +197,14 @@ union all SELECT a.TenantId,a.MallBaseId,a.CreateBy,a.id,a.UserTeacher,a.Content ...@@ -197,14 +197,14 @@ union all SELECT a.TenantId,a.MallBaseId,a.CreateBy,a.id,a.UserTeacher,a.Content
{ {
where += $@" and a.UserTeacher = {model.UserTeacher} "; where += $@" and a.UserTeacher = {model.UserTeacher} ";
} }
if (model.CreateBy > 0) //if (model.CreateBy > 0)
{ //{
where += $@" and a.CreateBy = {model.CreateBy} "; // where += $@" and a.CreateBy = {model.CreateBy} ";
} //}
if (model.CreateBy > 0) if (model.UserId > 0)
{ {
// where += $@" and a.CreateBy = {model.CreateBy} "; // where += $@" and a.CreateBy = {model.CreateBy} ";
likeWhere += $@" and l.UserId = {model.CreateBy} "; likeWhere += $@" and l.UserId = {model.UserId} ";
} }
} }
string sql = $@"SELECT t.*,if(l.Id>0,1,0) as HasLike,e.`Name` as CreateByName,e.TeacherLogo as CrearteByPhoto string sql = $@"SELECT t.*,if(l.Id>0,1,0) as HasLike,e.`Name` as CreateByName,e.TeacherLogo as CrearteByPhoto
......
...@@ -1412,7 +1412,7 @@ namespace Mall.WebApi.Controllers.Education ...@@ -1412,7 +1412,7 @@ namespace Mall.WebApi.Controllers.Education
{ {
return ApiResult.Failed("动态id不为空"); return ApiResult.Failed("动态id不为空");
} }
Rb_Education_Dynamic_Extend articele = dynamicModule.GetDynamicDetial(new Rb_Education_Dynamic_Extend { CreateBy = userInfo.UserId, Id = articleId }); Rb_Education_Dynamic_Extend articele = dynamicModule.GetDynamicDetial(new Rb_Education_Dynamic_Extend { UserId = userInfo.UserId, Id = articleId });
if (articele != null) if (articele != null)
{ {
var data = DecoratorDynameicResult(articele); var data = DecoratorDynameicResult(articele);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment