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
d459e896
Commit
d459e896
authored
Nov 05, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
3076a48c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
OrderModule.cs
Mall.Module.Product/OrderModule.cs
+15
-0
No files found.
Mall.Module.Product/OrderModule.cs
View file @
d459e896
...
@@ -12576,11 +12576,19 @@ namespace Mall.Module.Product
...
@@ -12576,11 +12576,19 @@ namespace Mall.Module.Product
{
{
QIds
=
servicePersions
QIds
=
servicePersions
});
});
List
<
RB_Reserve_MemberCoupon_Extend
>
educationCouponList
=
new
List
<
RB_Reserve_MemberCoupon_Extend
>();
// 查询订单详情对应的套餐卡信息
string
educationCouponIds
=
string
.
Join
(
","
,
dlist
.
Where
(
x
=>
x
.
EducationCouponId
>
0
).
Select
(
x
=>
x
.
EducationCouponId
).
Distinct
());
if
(!
string
.
IsNullOrWhiteSpace
(
educationCouponIds
))
{
educationCouponList
=
reserveMemberCouponRepository
.
GetList
(
new
RB_Reserve_MemberCoupon_Extend
{
TenantId
=
tenantId
,
MallBaseId
=
mallBaseId
,
Ids
=
educationCouponIds
});
}
foreach
(
var
item
in
dlist
)
foreach
(
var
item
in
dlist
)
{
{
item
.
CoverImagePath
=
item
.
CoverImage
;
item
.
CoverImagePath
=
item
.
CoverImage
;
item
.
IsBindExpress
=
erList
.
Where
(
x
=>
x
.
OrderDetailId
==
item
.
Id
).
Any
()
?
1
:
2
;
item
.
IsBindExpress
=
erList
.
Where
(
x
=>
x
.
OrderDetailId
==
item
.
Id
).
Any
()
?
1
:
2
;
item
.
ServicepersonalName
=
serviceList
?.
Where
(
qitem
=>
qitem
.
ID
==
item
.
ServicepersonalId
)?.
FirstOrDefault
()?.
Name
??
""
;
item
.
ServicepersonalName
=
serviceList
?.
Where
(
qitem
=>
qitem
.
ID
==
item
.
ServicepersonalId
)?.
FirstOrDefault
()?.
Name
??
""
;
item
.
ReserveCouponList
=
educationCouponList
.
Where
(
x
=>
x
.
Id
==
item
.
EducationCouponId
).
ToList
();
// 2020-10-11 订单详情对应的套餐卡
}
}
}
}
model
.
DetailList
=
dlist
;
model
.
DetailList
=
dlist
;
...
@@ -12738,6 +12746,7 @@ namespace Mall.Module.Product
...
@@ -12738,6 +12746,7 @@ namespace Mall.Module.Product
model
.
PreferPrice
,
model
.
PreferPrice
,
model
.
Income
,
model
.
Income
,
model
.
FreightMoney
,
model
.
FreightMoney
,
EducationMoney
=(
model
?.
EducationMoney
??
0
),
CouponMoney
=
model
.
CouponMoney
??
0
,
CouponMoney
=
model
.
CouponMoney
??
0
,
IntegralMoney
=
(
model
.
DetailList
!=
null
&&
model
.
DetailList
.
Any
())
?
(
model
.
DetailList
.
Sum
(
x
=>
x
.
IntegralMoney
??
0
))
:
0
,
IntegralMoney
=
(
model
.
DetailList
!=
null
&&
model
.
DetailList
.
Any
())
?
(
model
.
DetailList
.
Sum
(
x
=>
x
.
IntegralMoney
??
0
))
:
0
,
IntegralNumber
=
(
model
.
DetailList
!=
null
&&
model
.
DetailList
.
Any
())
?
(
model
.
DetailList
.
Sum
(
x
=>
x
.
IntegralNumber
??
0
))
:
0
,
IntegralNumber
=
(
model
.
DetailList
!=
null
&&
model
.
DetailList
.
Any
())
?
(
model
.
DetailList
.
Sum
(
x
=>
x
.
IntegralNumber
??
0
))
:
0
,
...
@@ -12843,6 +12852,12 @@ namespace Mall.Module.Product
...
@@ -12843,6 +12852,12 @@ namespace Mall.Module.Product
x
.
ServiceTime
,
x
.
ServiceTime
,
x
.
ServiceDate
,
x
.
ServiceDate
,
x
.
ServicepersonalName
,
x
.
ServicepersonalName
,
MemberEducationCouponList
=
x
?.
ReserveCouponList
.
Select
(
z
=>
new
{
z
.
Name
,
z
.
UseHeXiao
,
z
.
HeXiao
}),
}),
}),
});
});
}
}
...
...
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