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
c47bbd5d
Commit
c47bbd5d
authored
Aug 19, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增排序
parent
a631021c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
0 deletions
+30
-0
ShareModule.cs
Mall.Module.MarketingCenter/ShareModule.cs
+19
-0
ShareController.cs
Mall.WebApi/Controllers/MarketingCenter/ShareController.cs
+11
-0
No files found.
Mall.Module.MarketingCenter/ShareModule.cs
View file @
c47bbd5d
...
@@ -143,6 +143,25 @@ namespace Mall.Module.MarketingCenter
...
@@ -143,6 +143,25 @@ namespace Mall.Module.MarketingCenter
return
share_FriendRepository
.
GetShareFriendListRepository
(
query
);
return
share_FriendRepository
.
GetShareFriendListRepository
(
query
);
}
}
/// <summary>
/// 批量修改排序
/// </summary>
/// <param name="list"></param>
/// <returns></returns>
public
bool
SetShareCategorySortListModule
(
List
<
RB_Share_Category_Extend
>
list
)
{
bool
flag
=
false
;
foreach
(
var
extModel
in
list
)
{
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Share_Category_Extend
.
SortNum
),
extModel
.
SortNum
},
};
flag
=
share_CategoryRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Share_Category_Extend
.
Id
),
extModel
.
Id
));
}
return
flag
;
}
/// <summary>
/// <summary>
/// 新增修改分类
/// 新增修改分类
/// </summary>
/// </summary>
...
...
Mall.WebApi/Controllers/MarketingCenter/ShareController.cs
View file @
c47bbd5d
...
@@ -71,6 +71,17 @@ namespace Mall.WebApi.Controllers.MarketingCenter
...
@@ -71,6 +71,17 @@ namespace Mall.WebApi.Controllers.MarketingCenter
return
flag
?
ApiResult
.
Success
()
:
ApiResult
.
Failed
();
return
flag
?
ApiResult
.
Success
()
:
ApiResult
.
Failed
();
}
}
/// <summary>
/// 批量修改排序
/// </summary>
/// <returns></returns>
public
ApiResult
SetShareCategorySortList
()
{
var
list
=
JsonConvert
.
DeserializeObject
<
List
<
RB_Share_Category_Extend
>>(
RequestParm
.
msg
.
ToString
());
bool
flag
=
shareModule
.
SetShareCategorySortListModule
(
list
);
return
flag
?
ApiResult
.
Success
()
:
ApiResult
.
Failed
();
}
/// <summary>
/// <summary>
/// 删除分享分类
/// 删除分享分类
/// </summary>
/// </summary>
...
...
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