Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mall.oytour.com
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄奎
mall.oytour.com
Commits
87cc172c
Commit
87cc172c
authored
Mar 10, 2021
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交代码
parent
79e87eba
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
DynamicModule.cs
Mall.Module.Education/DynamicModule.cs
+2
-0
Rb_Education_DynamicRepository.cs
Mall.Repository/Education/Rb_Education_DynamicRepository.cs
+5
-2
No files found.
Mall.Module.Education/DynamicModule.cs
View file @
87cc172c
...
...
@@ -498,6 +498,8 @@ namespace Mall.Module.Education
return
articleList
;
}
#
endregion
}
}
Mall.Repository/Education/Rb_Education_DynamicRepository.cs
View file @
87cc172c
...
...
@@ -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
();
}
/// <summary>
///
老师动态列表
///
动态列表(除教育外)
/// </summary>
/// <param name="empId">员工id</param>
/// <param name="groupId">集团id</param>
...
...
@@ -329,7 +329,7 @@ LEFT JOIN rb_member_user as mu on mu.Id=edc.UserId)
if
(
model
.
UserId
>
0
)
{
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
...
...
@@ -344,5 +344,8 @@ union all SELECT a.TenantId,a.MallBaseId,a.CreateBy,a.id,a.UserTeacher,a.Content
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment