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
0dfbe62a
Commit
0dfbe62a
authored
Sep 29, 2020
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交代码
parent
29662391
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
1 deletion
+30
-1
RB_Education_MemberUseCoupon.cs
Mall.Model/Entity/Education/RB_Education_MemberUseCoupon.cs
+5
-0
EducationModule.cs
Mall.Module.Education/EducationModule.cs
+20
-1
AppletEducationController.cs
...WebApi/Controllers/Education/AppletEducationController.cs
+4
-0
AppletSchoolController.cs
Mall.WebApi/Controllers/Education/AppletSchoolController.cs
+1
-0
No files found.
Mall.Model/Entity/Education/RB_Education_MemberUseCoupon.cs
View file @
0dfbe62a
...
...
@@ -71,5 +71,10 @@ namespace Mall.Model.Entity.Education
/// 订单号
/// </summary>
public
int
OrderId
{
get
;
set
;
}
/// <summary>
/// 使用数
/// </summary>
public
int
UseHeXiao
{
get
;
set
;
}
}
}
Mall.Module.Education/EducationModule.cs
View file @
0dfbe62a
...
...
@@ -20,6 +20,11 @@ namespace Mall.Module.Education
{
public
class
EducationModule
{
/// <summary>
/// 素材管理
/// </summary>
private
readonly
RB_Material_InfoRepository
material_InfoRepository
=
new
RB_Material_InfoRepository
();
/// <summary>
/// 教师仓储
/// </summary>
...
...
@@ -2199,6 +2204,12 @@ namespace Mall.Module.Education
var
list
=
educationArticleCommentRepository
.
GetPageList
(
pageIndex
,
pageSize
,
out
count
,
demodel
);
if
(
list
.
Any
())
{
List
<
RB_Member_User_Extend
>
userList
=
new
List
<
RB_Member_User_Extend
>();
if
(
list
.
Where
(
x
=>
x
.
UserId
>
0
).
Any
())
{
string
uids
=
string
.
Join
(
","
,
list
.
Where
(
x
=>
x
.
UserId
>
0
).
Select
(
x
=>
x
.
UserId
??
0
));
userList
=
member_UserRepository
.
GetList
(
new
RB_Member_User_Extend
()
{
UserIds
=
uids
,
TenantId
=
demodel
.
TenantId
,
MallBaseId
=
demodel
.
MallBaseId
});
}
foreach
(
var
item
in
list
)
{
//评论图片
...
...
@@ -2207,6 +2218,14 @@ namespace Mall.Module.Education
{
item
.
CommentImgList
=
JsonConvert
.
DeserializeObject
<
List
<
string
>>(
item
.
CommentImage
);
}
if
(
item
.
UserId
>
0
)
{
item
.
UserPhotoPath
=
userList
.
Where
(
x
=>
x
.
Id
==
item
.
UserId
).
FirstOrDefault
()?.
Photo
??
""
;
}
if
(
item
.
UserId
==
0
&&
item
.
UserPhoto
>
0
)
{
item
.
UserPhotoPath
=
material_InfoRepository
.
GetEntity
(
item
.
UserPhoto
)?.
Path
??
""
;
}
}
}
return
list
;
...
...
Mall.WebApi/Controllers/Education/AppletEducationController.cs
View file @
0dfbe62a
...
...
@@ -470,5 +470,9 @@ namespace Mall.WebApi.Controllers.Education
if
(
flag
)
{
return
ApiResult
.
Success
();
}
else
{
return
ApiResult
.
Failed
();
}
}
#
endregion
}
}
\ No newline at end of file
Mall.WebApi/Controllers/Education/AppletSchoolController.cs
View file @
0dfbe62a
...
...
@@ -308,6 +308,7 @@ namespace Mall.WebApi.Controllers.Education
x
.
ID
,
x
.
UserId
,
x
.
UserName
,
x
.
UserPhotoPath
,
x
.
ArticleId
,
x
.
ArticleName
,
x
.
CommentScore
,
...
...
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