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
b4a9f8cb
Commit
b4a9f8cb
authored
May 15, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查询修改
parent
69019936
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
1 deletion
+17
-1
RB_StoresRepository.cs
Mall.Repository/User/RB_StoresRepository.cs
+8
-0
RB_VideoRepository.cs
Mall.Repository/User/RB_VideoRepository.cs
+8
-0
MContentController.cs
Mall.WebApi/Controllers/User/MContentController.cs
+1
-1
No files found.
Mall.Repository/User/RB_StoresRepository.cs
View file @
b4a9f8cb
...
...
@@ -36,6 +36,10 @@ namespace Mall.Repository.User
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Stores_Extend
.
Id
),
query
.
Id
);
}
if
(
query
.
Name
!=
null
&&
!
string
.
IsNullOrEmpty
(
query
.
Name
.
Trim
()))
{
builder
.
AppendFormat
(
" AND {0} LIKE '%{1}%' "
,
nameof
(
RB_Stores_Extend
.
Name
),
query
.
Name
.
Trim
());
}
builder
.
Append
(
" ORDER BY Id DESC "
);
return
GetPage
<
RB_Stores_Extend
>(
pageIndex
,
pageSize
,
out
rowCount
,
builder
.
ToString
()).
ToList
();
}
...
...
@@ -61,6 +65,10 @@ namespace Mall.Repository.User
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Stores_Extend
.
Id
),
query
.
Id
);
}
if
(
query
.
Name
!=
null
&&
!
string
.
IsNullOrEmpty
(
query
.
Name
.
Trim
()))
{
builder
.
AppendFormat
(
" AND {0} LIKE '%{1}%' "
,
nameof
(
RB_Stores_Extend
.
Name
),
query
.
Name
.
Trim
());
}
builder
.
Append
(
" ORDER BY Id DESC "
);
return
Get
<
RB_Stores_Extend
>(
builder
.
ToString
()).
ToList
();
}
...
...
Mall.Repository/User/RB_VideoRepository.cs
View file @
b4a9f8cb
...
...
@@ -36,6 +36,10 @@ namespace Mall.Repository.User
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Video_Extend
.
Id
),
query
.
Id
);
}
if
(
query
.
Title
!=
null
&&
!
string
.
IsNullOrEmpty
(
query
.
Title
.
Trim
()))
{
builder
.
AppendFormat
(
" AND {0} LIKE '%{1}%' "
,
nameof
(
RB_Video_Extend
.
Title
),
query
.
Title
.
Trim
());
}
builder
.
Append
(
" ORDER BY Id DESC "
);
return
GetPage
<
RB_Video_Extend
>(
pageIndex
,
pageSize
,
out
rowCount
,
builder
.
ToString
()).
ToList
();
}
...
...
@@ -61,6 +65,10 @@ namespace Mall.Repository.User
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Video_Extend
.
Id
),
query
.
Id
);
}
if
(
query
.
Title
!=
null
&&
!
string
.
IsNullOrEmpty
(
query
.
Title
.
Trim
()))
{
builder
.
AppendFormat
(
" AND {0} LIKE '%{1}%' "
,
nameof
(
RB_Video_Extend
.
Title
),
query
.
Title
.
Trim
());
}
builder
.
Append
(
" ORDER BY Id DESC "
);
return
Get
<
RB_Video_Extend
>(
builder
.
ToString
()).
ToList
();
}
...
...
Mall.WebApi/Controllers/User/MContentController.cs
View file @
b4a9f8cb
...
...
@@ -209,7 +209,7 @@ namespace Mall.WebApi.Controllers.User
/// 获取视频列表
/// </summary>
/// <returns></returns>
public
ApiResult
GetVideoList
Module
()
public
ApiResult
GetVideoList
()
{
var
query
=
JsonConvert
.
DeserializeObject
<
RB_Video_Extend
>(
RequestParm
.
msg
.
ToString
());
query
.
MallBaseId
=
RequestParm
.
MallBaseId
;
...
...
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