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
29662391
Commit
29662391
authored
Sep 29, 2020
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交代码
parent
7193550c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
AppletSchoolController.cs
Mall.WebApi/Controllers/Education/AppletSchoolController.cs
+12
-1
No files found.
Mall.WebApi/Controllers/Education/AppletSchoolController.cs
View file @
29662391
...
@@ -218,6 +218,13 @@ namespace Mall.WebApi.Controllers.Education
...
@@ -218,6 +218,13 @@ namespace Mall.WebApi.Controllers.Education
demodel
.
MallBaseId
=
parms
.
MallBaseId
;
demodel
.
MallBaseId
=
parms
.
MallBaseId
;
demodel
.
ArticleStatus
=
1
;
//只查询销售中的
demodel
.
ArticleStatus
=
1
;
//只查询销售中的
var
list
=
educationModule
.
GetArticlePageListRepository
(
pagelist
.
pageIndex
,
pagelist
.
pageSize
,
out
long
count
,
demodel
);
var
list
=
educationModule
.
GetArticlePageListRepository
(
pagelist
.
pageIndex
,
pagelist
.
pageSize
,
out
long
count
,
demodel
);
foreach
(
var
item
in
list
)
{
if
(!
string
.
IsNullOrWhiteSpace
(
item
.
LableName
))
{
item
.
LableNameList
=
JsonConvert
.
DeserializeObject
<
List
<
string
>>(
item
.
LableName
);
}
}
pagelist
.
count
=
Convert
.
ToInt32
(
count
);
pagelist
.
count
=
Convert
.
ToInt32
(
count
);
pagelist
.
pageData
=
list
.
Select
(
x
=>
new
pagelist
.
pageData
=
list
.
Select
(
x
=>
new
{
{
...
@@ -259,6 +266,10 @@ namespace Mall.WebApi.Controllers.Education
...
@@ -259,6 +266,10 @@ namespace Mall.WebApi.Controllers.Education
{
{
oldLogisticsModel
=
new
RB_Education_Article_Extend
();
oldLogisticsModel
=
new
RB_Education_Article_Extend
();
}
}
if
(!
string
.
IsNullOrWhiteSpace
(
oldLogisticsModel
.
LableName
))
{
oldLogisticsModel
.
LableNameList
=
JsonConvert
.
DeserializeObject
<
List
<
string
>>(
oldLogisticsModel
.
LableName
);
}
//更新浏览数
//更新浏览数
try
try
{
{
...
@@ -279,7 +290,7 @@ namespace Mall.WebApi.Controllers.Education
...
@@ -279,7 +290,7 @@ namespace Mall.WebApi.Controllers.Education
/// <summary>
/// <summary>
/// 获取
商品评论
分页列表
/// 获取
资讯留言
分页列表
/// </summary>
/// </summary>
/// <returns></returns>
/// <returns></returns>
[
HttpPost
]
[
HttpPost
]
...
...
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