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
f067c546
Commit
f067c546
authored
Nov 05, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
d459e896
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
6 deletions
+31
-6
OrderModule.cs
Mall.Module.Product/OrderModule.cs
+15
-0
ProductModule.cs
Mall.Module.Product/ProductModule.cs
+8
-3
RB_Reserve_ServicePersonalRepository.cs
...epository/Reserve/RB_Reserve_ServicePersonalRepository.cs
+6
-1
AppletGoodsController.cs
Mall.WebApi/Controllers/Product/AppletGoodsController.cs
+2
-2
No files found.
Mall.Module.Product/OrderModule.cs
View file @
f067c546
...
...
@@ -981,6 +981,13 @@ namespace Mall.Module.Product
{
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
)
{
item
.
CoverImagePath
=
item
.
CoverImage
;
...
...
@@ -994,6 +1001,7 @@ namespace Mall.Module.Product
model
.
PresentFXGrade
=
1
;
}
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
;
...
...
@@ -1045,6 +1053,7 @@ namespace Mall.Module.Product
model
.
PreferPrice
,
model
.
Income
,
model
.
CouponMoney
,
EducationMoney
=(
model
?.
EducationMoney
??
0
),
model
.
Consignee
,
model
.
Mobile
,
model
.
ShoppingAddress
,
...
...
@@ -1063,6 +1072,12 @@ namespace Mall.Module.Product
x
.
ServiceTime
,
x
.
GoodServiceTime
,
x
.
ServicepersonalName
,
MemberEducationCouponList
=
x
?.
ReserveCouponList
.
Select
(
z
=>
new
{
z
.
Name
,
z
.
UseHeXiao
,
z
.
HeXiao
}),
}),
model
.
IsApplyForCancel
,
model
.
RejectRemark
,
...
...
Mall.Module.Product/ProductModule.cs
View file @
f067c546
...
...
@@ -11,6 +11,7 @@ using Mall.Model.Entity.Product;
using
Mall.Model.Entity.User
;
using
Mall.Model.Extend.BaseSetUp
;
using
Mall.Model.Extend.Product
;
using
Mall.Model.Extend.Reserve
;
using
Mall.Model.Extend.User
;
using
Mall.Model.Query
;
using
Mall.Repository
;
...
...
@@ -2648,7 +2649,7 @@ namespace Mall.Module.Product
/// <param name="MallBaseId"></param>
/// <param name="storeId">门店编号</param>
/// <returns></returns>
public
object
GetAppletOfflineGoodsInfoModule
(
int
goodsId
,
int
UserId
,
int
SmallShopsId
,
int
TenantId
,
int
MallBaseId
,
int
storeId
=
0
)
public
object
GetAppletOfflineGoodsInfoModule
(
int
goodsId
,
int
UserId
,
int
SmallShopsId
,
int
TenantId
,
int
MallBaseId
,
int
storeId
=
0
,
int
servicePersionId
=
0
)
{
var
model
=
goodsRepository
.
GetEntity
(
goodsId
).
RefMapperTo
<
RB_Goods_Extend
>();
if
(
model
==
null
||
model
.
TenantId
!=
TenantId
||
model
.
MallBaseId
!=
MallBaseId
)
...
...
@@ -3538,8 +3539,12 @@ namespace Mall.Module.Product
{
categoryIds
=
string
.
Join
(
","
,
model
.
CategoryList
.
Select
(
qitem
=>
qitem
.
CategoryId
));
}
var
servicePersionList
=
reserve_ServicePersonalRepository
.
GetServicePersonalListExtRepository
(
storeId
,
model
.
Id
,
categoryIds
)?.
ToList
()
??
new
List
<
Model
.
Extend
.
Reserve
.
RB_Reserve_ServicePersonal_Extend
>();
//服务人员列表
var
servicePersionList
=
new
List
<
RB_Reserve_ServicePersonal_Extend
>();
if
(
model
.
IsChooseServicePerson
==
1
)
{
servicePersionList
=
reserve_ServicePersonalRepository
.
GetServicePersonalListExtRepository
(
storeId
,
model
.
Id
,
categoryIds
,
servicePersionId
)?.
ToList
()
??
new
List
<
Model
.
Extend
.
Reserve
.
RB_Reserve_ServicePersonal_Extend
>();
}
var
storeModel
=
storesRepository
.
GetEntity
(
storeId
);
List
<
StoreReserveDate
>
storeDateList
=
new
List
<
StoreReserveDate
>();
DateTime
currentDay
=
Convert
.
ToDateTime
(
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd"
));
...
...
Mall.Repository/Reserve/RB_Reserve_ServicePersonalRepository.cs
View file @
f067c546
...
...
@@ -338,8 +338,9 @@ ORDER BY t.orderNum desc ";
/// <param name="storeId"></param>
/// <param name="productId"></param>
/// <param name="categoryIds"></param>
/// <param name="servicePersionId">服务人员Id</param>
/// <returns></returns>
public
List
<
RB_Reserve_ServicePersonal_Extend
>
GetServicePersonalListExtRepository
(
int
storeId
,
int
productId
,
string
categoryIds
)
public
List
<
RB_Reserve_ServicePersonal_Extend
>
GetServicePersonalListExtRepository
(
int
storeId
,
int
productId
,
string
categoryIds
,
int
servicePersionId
=
0
)
{
StringBuilder
builder
=
new
StringBuilder
();
builder
.
AppendFormat
(
@"
...
...
@@ -362,6 +363,10 @@ LEFT JOIN
) AS orderTab ON A.ID=orderTab.OrderNum
WHERE A.Status=0 AND A.StoreId={2}
"
,
productId
,
categoryIds
,
storeId
);
if
(
servicePersionId
>
0
)
{
builder
.
AppendFormat
(
" AND A.ID={0} "
,
servicePersionId
);
}
return
Get
<
RB_Reserve_ServicePersonal_Extend
>(
builder
.
ToString
()).
ToList
();
}
...
...
Mall.WebApi/Controllers/Product/AppletGoodsController.cs
View file @
f067c546
...
...
@@ -423,13 +423,13 @@ namespace Mall.WebApi.Controllers.MallBase
JObject
prams
=
JObject
.
Parse
(
req
.
msg
.
ToString
());
int
GoodsId
=
prams
.
GetInt
(
"GoodsId"
,
0
);
int
StoreId
=
prams
.
GetInt
(
"StoreId"
,
0
);
int
servicePersionId
=
prams
.
GetInt
(
"servicePersionId"
,
0
);
if
(
StoreId
<=
0
||
GoodsId
<=
0
)
{
return
ApiResult
.
ParamIsNull
(
message
:
"请选择门店"
);
}
int
UserId
=
req
.
UserId
;
object
Robj
=
productModule
.
GetAppletOfflineGoodsInfoModule
(
GoodsId
,
UserId
,
req
.
SmallShopsId
,
req
.
TenantId
,
req
.
MallBaseId
,
storeId
:
StoreId
);
object
Robj
=
productModule
.
GetAppletOfflineGoodsInfoModule
(
GoodsId
,
UserId
,
req
.
SmallShopsId
,
req
.
TenantId
,
req
.
MallBaseId
,
storeId
:
StoreId
,
servicePersionId
:
servicePersionId
);
return
ApiResult
.
Success
(
""
,
Robj
);
}
...
...
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