Commit 87cc172c authored by 吴春's avatar 吴春

提交代码

parent 79e87eba
...@@ -498,6 +498,8 @@ namespace Mall.Module.Education ...@@ -498,6 +498,8 @@ namespace Mall.Module.Education
return articleList; return articleList;
} }
#endregion #endregion
} }
} }
...@@ -294,7 +294,7 @@ LEFT JOIN rb_member_user as mu on mu.Id=edc.UserId) ...@@ -294,7 +294,7 @@ LEFT JOIN rb_member_user as mu on mu.Id=edc.UserId)
return GetPage<Rb_Education_Dynamic_Extend>(pageIndex, pageSize, out count, sql).ToList(); return GetPage<Rb_Education_Dynamic_Extend>(pageIndex, pageSize, out count, sql).ToList();
} }
/// <summary> /// <summary>
/// 老师动态列表 /// 动态列表(除教育外)
/// </summary> /// </summary>
/// <param name="empId">员工id</param> /// <param name="empId">员工id</param>
/// <param name="groupId">集团id</param> /// <param name="groupId">集团id</param>
...@@ -329,7 +329,7 @@ LEFT JOIN rb_member_user as mu on mu.Id=edc.UserId) ...@@ -329,7 +329,7 @@ LEFT JOIN rb_member_user as mu on mu.Id=edc.UserId)
if (model.UserId > 0) if (model.UserId > 0)
{ {
likeWhere += $@" and l.UserId = {model.UserId} "; likeWhere += $@" and l.UserId = {model.UserId} ";
followWhere += $@" and b.UserId = {model.UserId} and b.`Status`=0 "; followWhere += $@" and (b.UserId = {model.UserId} and b.`Status`=0 or a.CreateBy = {model.UserId} ) ";
} }
} }
string sql = $@"SELECT t.*,if(l.Id>0,1,0) as HasLike,e.`Name` as CreateByName,e.Photo as CrearteByPhoto string sql = $@"SELECT t.*,if(l.Id>0,1,0) as HasLike,e.`Name` as CreateByName,e.Photo as CrearteByPhoto
...@@ -344,5 +344,8 @@ union all SELECT a.TenantId,a.MallBaseId,a.CreateBy,a.id,a.UserTeacher,a.Content ...@@ -344,5 +344,8 @@ union all SELECT a.TenantId,a.MallBaseId,a.CreateBy,a.id,a.UserTeacher,a.Content
} }
} }
} }
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