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
7d4b5143
Commit
7d4b5143
authored
Aug 19, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
0d2f5ecb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
0 deletions
+34
-0
RB_Share_Category_Extend.cs
....Model/Extend/MarketingCenter/RB_Share_Category_Extend.cs
+5
-0
RB_Share_Friend_Extend.cs
Mall.Model/Extend/MarketingCenter/RB_Share_Friend_Extend.cs
+6
-0
ShareModule.cs
Mall.Module.MarketingCenter/ShareModule.cs
+23
-0
No files found.
Mall.Model/Extend/MarketingCenter/RB_Share_Category_Extend.cs
View file @
7d4b5143
...
...
@@ -16,5 +16,10 @@ namespace Mall.Model.Extend.MarketingCenter
/// 分类Id
/// </summary>
public
string
QCateIds
{
get
;
set
;
}
/// <summary>
/// 分类列表
/// </summary>
public
RB_Share_Category_Extend
CateList
{
get
;
set
;
}
}
}
Mall.Model/Extend/MarketingCenter/RB_Share_Friend_Extend.cs
View file @
7d4b5143
using
Mall.Model.Entity.MarketingCenter
;
using
System
;
using
System.Collections.Generic
;
using
VT.FW.DB
;
namespace
Mall.Model.Extend.MarketingCenter
...
...
@@ -41,5 +42,10 @@ namespace Mall.Model.Extend.MarketingCenter
return
Convert
.
ToDateTime
(
this
.
CreateDate
).
ToString
(
"yyyy-MM-dd HH:mm:ss"
);
}
}
/// <summary>
/// 分类列表
/// </summary>
public
List
<
RB_Share_Category_Extend
>
CateList
{
get
;
set
;
}
}
}
\ No newline at end of file
Mall.Module.MarketingCenter/ShareModule.cs
View file @
7d4b5143
...
...
@@ -99,6 +99,11 @@ namespace Mall.Module.MarketingCenter
/// <returns></returns>
public
List
<
RB_Share_Friend_Extend
>
GetShareFriendPageListModule
(
int
pageIndex
,
int
pageSize
,
out
long
rowsCount
,
RB_Share_Friend_Extend
query
)
{
var
cateAllList
=
share_CategoryRepository
.
GetShareCategoryListRepository
(
new
RB_Share_Category_Extend
()
{
MallBaseId
=
query
.
MallBaseId
,
TenantId
=
query
.
TenantId
});
if
(
query
.
CateId
>
0
)
{
var
cateList
=
GetChildCategoryListModule
(
new
RB_Share_Category_Extend
()
{
QCateIds
=
query
.
CateId
.
ToString
()
});
...
...
@@ -106,9 +111,27 @@ namespace Mall.Module.MarketingCenter
query
.
CateIds
=
string
.
Join
(
","
,
cateList
.
Select
(
qitem
=>
qitem
.
Id
));
}
var
list
=
share_FriendRepository
.
GetShareFriendPageListRepository
(
pageIndex
,
pageSize
,
out
rowsCount
,
query
);
foreach
(
var
item
in
list
)
{
item
.
CateList
=
GetFatherList
(
cateAllList
,
item
.
CateId
).
OrderBy
(
qitem
=>
qitem
.
Level
).
ToList
();
}
return
list
;
}
/// <summary>
/// 获取所有上级分类
/// </summary>
/// <param name="list"></param>
/// <param name="Id"></param>
/// <returns></returns>
public
static
IEnumerable
<
RB_Share_Category_Extend
>
GetFatherList
(
IList
<
RB_Share_Category_Extend
>
list
,
int
Id
)
{
var
query
=
list
.
Where
(
p
=>
p
.
Id
==
Id
).
ToList
();
return
query
.
ToList
().
Concat
(
query
.
ToList
().
SelectMany
(
t
=>
GetFatherList
(
list
,
t
.
ParentId
)));
}
/// <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