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
3076a48c
Commit
3076a48c
authored
Nov 05, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
71e77c21
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
0 deletions
+24
-0
RB_Goods_OrderDetail_Extend.cs
Mall.Model/Extend/Product/RB_Goods_OrderDetail_Extend.cs
+7
-0
OrderModule.cs
Mall.Module.Product/OrderModule.cs
+13
-0
OrderController.cs
Mall.WebApi/Controllers/Product/OrderController.cs
+4
-0
No files found.
Mall.Model/Extend/Product/RB_Goods_OrderDetail_Extend.cs
View file @
3076a48c
...
...
@@ -4,6 +4,7 @@ using System.Collections.Generic;
using
System.Text
;
using
Mall.Model.Entity.Product
;
using
Mall.Model.Extend.Finance
;
using
Mall.Model.Extend.Reserve
;
namespace
Mall.Model.Extend.Product
{
...
...
@@ -36,6 +37,12 @@ namespace Mall.Model.Extend.Product
/// 课程卡信息 //2020-10-11 Add By:w
/// </summary>
public
List
<
Education
.
RB_Education_MemberCoupon_Extend
>
MemberEducationCouponList
{
get
;
set
;
}
/// <summary>
/// 套餐卡信息
/// </summary>
public
List
<
RB_Reserve_MemberCoupon_Extend
>
ReserveCouponList
{
get
;
set
;
}
/// <summary>
/// 是否直播订单
/// </summary>
...
...
Mall.Module.Product/OrderModule.cs
View file @
3076a48c
...
...
@@ -325,6 +325,11 @@ namespace Mall.Module.Product
/// </summary>
private
Mall
.
Repository
.
Education
.
RB_Education_MemberCouponRepository
educationMemberCouponRepository
=
new
Mall
.
Repository
.
Education
.
RB_Education_MemberCouponRepository
();
/// <summary>
/// 套餐卡仓储层对象
/// </summary>
private
RB_Reserve_MemberCouponRepository
reserveMemberCouponRepository
=
new
RB_Reserve_MemberCouponRepository
();
/// <summary>
/// 服务人员仓储层对象
/// </summary>
...
...
@@ -8534,12 +8539,20 @@ namespace Mall.Module.Product
{
QIds
=
persionIds
});
//查询订单详情对应的课程卡信息
string
educationCouponIds
=
string
.
Join
(
","
,
dlist
.
Where
(
x
=>
x
.
EducationCouponId
>
0
).
Select
(
x
=>
x
.
EducationCouponId
).
Distinct
());
List
<
RB_Reserve_MemberCoupon_Extend
>
educationCouponList
=
new
List
<
RB_Reserve_MemberCoupon_Extend
>();
if
(!
string
.
IsNullOrWhiteSpace
(
educationCouponIds
))
{
educationCouponList
=
reserveMemberCouponRepository
.
GetList
(
new
RB_Reserve_MemberCoupon_Extend
{
TenantId
=
demodel
.
TenantId
,
MallBaseId
=
demodel
.
MallBaseId
,
Ids
=
educationCouponIds
});
}
foreach
(
var
item
in
dlist
)
{
item
.
CoverImagePath
=
item
.
CoverImage
;
item
.
GoodsSubName
=
GList
.
Where
(
x
=>
x
.
Id
==
item
.
GoodsId
).
FirstOrDefault
()?.
SubName
??
""
;
item
.
FinanceList
=
flist
.
Where
(
x
=>
x
.
ECOrderDetailId
==
item
.
Id
).
ToList
();
// 2020-08-19 新增财务单据列表
item
.
ServicepersonalName
=
persionList
?.
Where
(
qitem
=>
qitem
.
ID
==
item
.
ServicepersonalId
)?.
FirstOrDefault
()?.
Name
??
""
;
item
.
ReserveCouponList
=
educationCouponList
.
Where
(
x
=>
x
.
Id
==
item
.
EducationCouponId
).
ToList
();
// 2020-10-11 订单详情对应的课程卡
}
}
//2020-08-25 Add By:W Start
...
...
Mall.WebApi/Controllers/Product/OrderController.cs
View file @
3076a48c
...
...
@@ -1909,6 +1909,10 @@ namespace Mall.WebApi.Controllers.MallBase
CouponMoney
=
y
.
CouponMoney
??
0
,
InsuranceMoney
=
y
.
InsuranceMoney
??
0
,
InsuranceCostMoney
=
y
.
InsuranceCostMoney
??
0
,
MemberEducationCouponList
=
y
.
ReserveCouponList
.
Select
(
z
=>
new
{
z
.
Name
,
}),
SFinanceList
=
y
.
FinanceList
.
Where
(
z
=>
z
.
Type
==
1
).
Select
(
z
=>
new
{
z
.
FrID
,
...
...
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