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
e3846f6e
Commit
e3846f6e
authored
May 15, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
43314a9e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
48 additions
and
2 deletions
+48
-2
ContentModule.cs
Mall.Module.User/ContentModule.cs
+17
-0
RB_ArticleRepository.cs
Mall.Repository/User/RB_ArticleRepository.cs
+8
-0
RB_Topic_TypeRepository.cs
Mall.Repository/User/RB_Topic_TypeRepository.cs
+8
-0
MContentController.cs
Mall.WebApi/Controllers/User/MContentController.cs
+15
-2
No files found.
Mall.Module.User/ContentModule.cs
View file @
e3846f6e
...
...
@@ -110,6 +110,23 @@ namespace Mall.Module.User
flag
=
topic_TypeRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Topic_Type_Extend
.
Id
),
Id
));
return
flag
;
}
/// <summary>
/// 删除专题分类
/// </summary>
/// <param name="Id">主键编号</param>
/// <param name="IsDisable">是否禁用</param>
/// <returns></returns>
public
bool
UpdateTopicTypeStatusModule
(
object
Id
,
int
IsDisable
)
{
bool
flag
=
false
;
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Topic_Type_Extend
.
IsDisable
),
IsDisable
},
};
flag
=
topic_TypeRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Topic_Type_Extend
.
Id
),
Id
));
return
flag
;
}
#
endregion
#
region
门店
...
...
Mall.Repository/User/RB_ArticleRepository.cs
View file @
e3846f6e
...
...
@@ -36,6 +36,10 @@ namespace Mall.Repository.User
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Article_Extend
.
Id
),
query
.
Id
);
}
if
(
query
.
Title
!=
null
&&
!
string
.
IsNullOrEmpty
(
query
.
Title
.
Trim
()))
{
builder
.
AppendFormat
(
" AND {0} LIKE '%{1}%' "
,
nameof
(
RB_Article_Extend
.
Title
),
query
.
Title
.
Trim
());
}
builder
.
Append
(
" ORDER BY SortNum "
);
return
GetPage
<
RB_Article_Extend
>(
pageIndex
,
pageSize
,
out
rowCount
,
builder
.
ToString
()).
ToList
();
}
...
...
@@ -61,6 +65,10 @@ namespace Mall.Repository.User
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Article_Extend
.
Id
),
query
.
Id
);
}
if
(
query
.
Title
!=
null
&&
!
string
.
IsNullOrEmpty
(
query
.
Title
.
Trim
()))
{
builder
.
AppendFormat
(
" AND {0} LIKE '%{1}%' "
,
nameof
(
RB_Article_Extend
.
Title
),
query
.
Title
.
Trim
());
}
builder
.
Append
(
" ORDER BY SortNum "
);
return
Get
<
RB_Article_Extend
>(
builder
.
ToString
()).
ToList
();
}
...
...
Mall.Repository/User/RB_Topic_TypeRepository.cs
View file @
e3846f6e
...
...
@@ -36,6 +36,10 @@ namespace Mall.Repository.User
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Topic_Type_Extend
.
Id
),
query
.
Id
);
}
if
(
query
.
TopicName
!=
null
&&
!
string
.
IsNullOrEmpty
(
query
.
TopicName
.
Trim
()))
{
builder
.
AppendFormat
(
" AND {0} LIKE '%{1}%' "
,
nameof
(
RB_Topic_Type_Extend
.
TopicName
),
query
.
TopicName
.
Trim
());
}
builder
.
Append
(
" ORDER BY SortNum "
);
return
GetPage
<
RB_Topic_Type_Extend
>(
pageIndex
,
pageSize
,
out
rowCount
,
builder
.
ToString
()).
ToList
();
}
...
...
@@ -61,6 +65,10 @@ namespace Mall.Repository.User
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Topic_Type_Extend
.
Id
),
query
.
Id
);
}
if
(
query
.
TopicName
!=
null
&&
!
string
.
IsNullOrEmpty
(
query
.
TopicName
.
Trim
()))
{
builder
.
AppendFormat
(
" AND {0} LIKE '%{1}%' "
,
nameof
(
RB_Topic_Type_Extend
.
TopicName
),
query
.
TopicName
.
Trim
());
}
builder
.
Append
(
" ORDER BY SortNum "
);
return
Get
<
RB_Topic_Type_Extend
>(
builder
.
ToString
()).
ToList
();
}
...
...
Mall.WebApi/Controllers/User/MContentController.cs
View file @
e3846f6e
...
...
@@ -92,7 +92,7 @@ namespace Mall.WebApi.Controllers.User
/// 删除专题分类
/// </summary>
/// <returns></returns>
public
ApiResult
RemoveTopicType
Module
()
public
ApiResult
RemoveTopicType
()
{
JObject
parms
=
JObject
.
Parse
(
RequestParm
.
msg
.
ToString
());
var
Id
=
parms
.
GetInt
(
"Id"
,
0
);
...
...
@@ -100,6 +100,19 @@ namespace Mall.WebApi.Controllers.User
return
flag
?
ApiResult
.
Success
()
:
ApiResult
.
Failed
();
}
/// <summary>
/// 更新专题分类状态
/// </summary>
/// <returns></returns>
public
ApiResult
UpdateTopicTypeStatus
()
{
JObject
parms
=
JObject
.
Parse
(
RequestParm
.
msg
.
ToString
());
var
Id
=
parms
.
GetInt
(
"Id"
,
0
);
var
IsDisable
=
parms
.
GetInt
(
"IsDisable"
);
var
flag
=
contentModule
.
UpdateTopicTypeStatusModule
(
Id
,
IsDisable
);
return
flag
?
ApiResult
.
Success
()
:
ApiResult
.
Failed
();
}
#
endregion
#
region
门店
...
...
@@ -317,7 +330,7 @@ namespace Mall.WebApi.Controllers.User
}
/// <summary>
/// 更新状态
/// 更新
文章
状态
/// </summary>
/// <returns></returns>
public
ApiResult
UpdateArticleStatus
()
...
...
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