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
2dfecd58
Commit
2dfecd58
authored
Apr 19, 2022
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
d1bb566c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
ActivityModule.cs
Mall.Module.Education/ActivityModule.cs
+10
-2
No files found.
Mall.Module.Education/ActivityModule.cs
View file @
2dfecd58
...
...
@@ -2608,7 +2608,13 @@ namespace Mall.Module.Education
{
var
list
=
education_ActivityRepository
.
GetList
(
query
);
list
=
list
.
Where
(
x
=>
!
string
.
IsNullOrEmpty
(
x
.
CoverImg
)).
ToList
();
//排除没有封面图的
//查询活动类型
string
typeIds
=
string
.
Join
(
","
,
list
.
Select
(
x
=>
x
.
ActivityType
).
Distinct
());
var
typeList
=
education_ActivityTypeRepository
.
GetActivityTypeListRepository
(
new
RB_Education_ActivityType_Extend
()
{
MallBaseId
=
query
.
MallBaseId
,
Ids
=
typeIds
});
list
.
ForEach
(
x
=>
{
x
.
ActivityTypeName
=
typeList
.
Where
(
y
=>
y
.
Id
==
x
.
ActivityType
).
FirstOrDefault
()?.
TypeName
??
""
;
});
//根据查询日期 开始遍历
DateTime
STime
=
Convert
.
ToDateTime
(
query
.
SelectStartTimeStr
);
DateTime
ETime
=
Convert
.
ToDateTime
(
query
.
SelectEndTimeStr
);
...
...
@@ -2618,10 +2624,12 @@ namespace Mall.Module.Education
RList
.
Add
(
new
{
Date
=
STime
.
ToString
(
"yyyy-MM-dd"
),
ActivityList
=
alist
.
Select
(
x
=>
new
ActivityList
=
alist
.
OrderBy
(
x
=>
x
.
StartTime
).
Select
(
x
=>
new
{
x
.
Id
,
x
.
ActivityName
,
x
.
ActivityType
,
x
.
ActivityTypeName
,
StartTime
=
x
.
StartTime
.
ToString
(
"MM-dd HH:mm"
),
EndTime
=
x
.
EndTime
.
ToString
(
"MM-dd HH:mm"
),
x
.
CoverImg
,
...
...
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