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
e6c8625b
Commit
e6c8625b
authored
Nov 03, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
a53b41be
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
110 additions
and
8 deletions
+110
-8
OrderModule.cs
Mall.Module.Product/OrderModule.cs
+34
-6
ProductModule.cs
Mall.Module.Product/ProductModule.cs
+35
-0
AppletGoodsController.cs
Mall.WebApi/Controllers/Product/AppletGoodsController.cs
+25
-0
AppletOrderController.cs
Mall.WebApi/Controllers/Product/AppletOrderController.cs
+16
-0
OSGoodsController.cs
Mall.WebApi/Controllers/Reserve/OSGoodsController.cs
+0
-2
No files found.
Mall.Module.Product/OrderModule.cs
View file @
e6c8625b
...
@@ -962,10 +962,10 @@ namespace Mall.Module.Product
...
@@ -962,10 +962,10 @@ namespace Mall.Module.Product
string
orderDetailIds
=
string
.
Join
(
","
,
dlist
.
Select
(
x
=>
x
.
Id
));
string
orderDetailIds
=
string
.
Join
(
","
,
dlist
.
Select
(
x
=>
x
.
Id
));
var
oasList
=
goods_OrderAfterSaleRepository
.
GetList
(
new
RB_Goods_OrderAfterSale_Extend
()
{
OrderDetailIds
=
orderDetailIds
,
TenantId
=
tenantId
,
MallBaseId
=
mallBaseId
},
false
);
var
oasList
=
goods_OrderAfterSaleRepository
.
GetList
(
new
RB_Goods_OrderAfterSale_Extend
()
{
OrderDetailIds
=
orderDetailIds
,
TenantId
=
tenantId
,
MallBaseId
=
mallBaseId
},
false
);
string
servicePersions
=
string
.
Join
(
","
,
dlist
.
Select
(
x
=>
x
.
ServicepersonalId
));
string
servicePersions
=
string
.
Join
(
","
,
dlist
.
Select
(
x
=>
x
.
ServicepersonalId
));
var
serviceList
=
reserve_ServicePersonalRepository
.
GetServicePersonalList
(
new
Model
.
Extend
.
Reserve
.
RB_Reserve_ServicePersonal_Extend
()
var
serviceList
=
reserve_ServicePersonalRepository
.
GetServicePersonalList
(
new
Model
.
Extend
.
Reserve
.
RB_Reserve_ServicePersonal_Extend
()
{
{
QIds
=
servicePersions
QIds
=
servicePersions
});
});
foreach
(
var
item
in
dlist
)
foreach
(
var
item
in
dlist
)
{
{
item
.
CoverImagePath
=
item
.
CoverImage
;
item
.
CoverImagePath
=
item
.
CoverImage
;
...
@@ -5879,6 +5879,21 @@ namespace Mall.Module.Product
...
@@ -5879,6 +5879,21 @@ namespace Mall.Module.Product
}
}
}
}
/// <summary>
/// 修改订单线下服务人员
/// </summary>
/// <param name="OrderId"></param>
/// <param name="ServicepersonalId"></param>
/// <returns></returns>
public
bool
SetOfflineOrderServicepersionModule
(
int
OrderId
,
int
ServicepersonalId
)
{
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Goods_OrderDetail_Extend
.
ServicepersonalId
),
ServicepersonalId
}
};
return
goods_OrderDetailRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Goods_OrderDetail_Extend
.
GoodsId
),
OrderId
));
}
/// <summary>
/// <summary>
/// 赠送粉象等级
/// 赠送粉象等级
/// </summary>
/// </summary>
...
@@ -12603,6 +12618,11 @@ namespace Mall.Module.Product
...
@@ -12603,6 +12618,11 @@ namespace Mall.Module.Product
{
{
return
ApiResult
.
Failed
(
"订单信息不存在,请核实后再试"
);
return
ApiResult
.
Failed
(
"订单信息不存在,请核实后再试"
);
}
}
var
storeModel
=
new
RB_Stores
();
if
(
model
.
StoresId
>
0
)
{
storeModel
=
storesRepository
.
GetEntity
(
model
.
StoresId
);
}
//查询订单所属微店 2020-08-14 Add By:W
//查询订单所属微店 2020-08-14 Add By:W
if
(
model
.
SmallShopsId
.
HasValue
&&
model
.
SmallShopsId
>
0
)
if
(
model
.
SmallShopsId
.
HasValue
&&
model
.
SmallShopsId
>
0
)
...
@@ -12613,8 +12633,6 @@ namespace Mall.Module.Product
...
@@ -12613,8 +12633,6 @@ namespace Mall.Module.Product
model
.
SmallShopsName
=
smallShop
.
Name
;
model
.
SmallShopsName
=
smallShop
.
Name
;
}
}
}
}
// 2020-08-14 Add By:W End
// 2020-08-14 Add By:W End
//查询订单明细
//查询订单明细
...
@@ -12624,10 +12642,16 @@ namespace Mall.Module.Product
...
@@ -12624,10 +12642,16 @@ namespace Mall.Module.Product
List
<
RB_Material_Info_Extend
>
Mlist
=
new
List
<
RB_Material_Info_Extend
>();
List
<
RB_Material_Info_Extend
>
Mlist
=
new
List
<
RB_Material_Info_Extend
>();
if
(
dlist
.
Any
())
if
(
dlist
.
Any
())
{
{
string
servicePersions
=
string
.
Join
(
","
,
dlist
.
Select
(
x
=>
x
.
ServicepersonalId
));
var
serviceList
=
reserve_ServicePersonalRepository
.
GetServicePersonalList
(
new
Model
.
Extend
.
Reserve
.
RB_Reserve_ServicePersonal_Extend
()
{
QIds
=
servicePersions
});
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
??
""
;
}
}
}
}
model
.
DetailList
=
dlist
;
model
.
DetailList
=
dlist
;
...
@@ -12816,7 +12840,8 @@ namespace Mall.Module.Product
...
@@ -12816,7 +12840,8 @@ namespace Mall.Module.Product
model
.
District
,
model
.
District
,
model
.
SmallShopsName
,
model
.
SmallShopsName
,
model
.
SmallShopsId
,
model
.
SmallShopsId
,
storeName
=
storeModel
?.
Name
??
""
,
storeAddress
=
storeModel
?.
Address
??
""
,
OrderExpressList
=
oeList
.
Select
(
x
=>
new
OrderExpressList
=
oeList
.
Select
(
x
=>
new
{
{
x
.
Id
,
x
.
Id
,
...
@@ -12883,7 +12908,10 @@ namespace Mall.Module.Product
...
@@ -12883,7 +12908,10 @@ namespace Mall.Module.Product
InsuranceMoney
=
x
.
InsuranceMoney
??
0
,
InsuranceMoney
=
x
.
InsuranceMoney
??
0
,
IntegralMoney
=
x
.
IntegralMoney
??
0
,
IntegralMoney
=
x
.
IntegralMoney
??
0
,
IntegralNumber
=
x
.
IntegralNumber
??
0
,
IntegralNumber
=
x
.
IntegralNumber
??
0
,
})
x
.
ServiceTime
,
x
.
ServiceDate
,
x
.
ServicepersonalName
,
}),
});
});
}
}
...
...
Mall.Module.Product/ProductModule.cs
View file @
e6c8625b
...
@@ -3765,6 +3765,41 @@ namespace Mall.Module.Product
...
@@ -3765,6 +3765,41 @@ namespace Mall.Module.Product
#
endregion
#
endregion
}
}
/// <summary>
/// 获取线下服务人员列表
/// </summary>
/// <param name="goodsId"></param>
/// <param name="UserId"></param>
/// <param name="SmallShopsId"></param>
/// <param name="TenantId"></param>
/// <param name="MallBaseId"></param>
/// <param name="storeId"></param>
/// <returns></returns>
public
object
GetAppletOfflineServicePersionModule
(
int
goodsId
,
int
UserId
,
int
SmallShopsId
,
int
TenantId
,
int
MallBaseId
,
int
storeId
=
0
)
{
var
model
=
goodsRepository
.
GetEntity
(
goodsId
).
RefMapperTo
<
RB_Goods_Extend
>();
//查询分类
model
.
CategoryList
=
goods_CategoryRepository
.
GetList
(
new
RB_Goods_Category_Extend
()
{
GoodsId
=
goodsId
,
TenantId
=
TenantId
,
MallBaseId
=
MallBaseId
});
string
categoryIds
=
"0"
;
if
(
model
.
CategoryList
!=
null
&&
model
.
CategoryList
.
Count
>
0
)
{
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
>();
return
servicePersionList
?.
Where
(
qitem
=>
qitem
.
ServiceStatus
==
1
).
Select
(
qitem
=>
new
{
qitem
.
ServiceLogo
,
qitem
.
Score
,
qitem
.
Name
,
qitem
.
Major
,
Gender
=
qitem
.
Gender
.
ToInt
(),
ReserveCount
=
qitem
.
OrderNum
,
ServiceId
=
qitem
.
ID
});
}
/// <summary>
/// <summary>
/// 获取小程序商品视频分页列表
/// 获取小程序商品视频分页列表
/// </summary>
/// </summary>
...
...
Mall.WebApi/Controllers/Product/AppletGoodsController.cs
View file @
e6c8625b
...
@@ -373,6 +373,7 @@ namespace Mall.WebApi.Controllers.MallBase
...
@@ -373,6 +373,7 @@ namespace Mall.WebApi.Controllers.MallBase
erpgoodobj
=
model
.
ERPGoodObj
,
erpgoodobj
=
model
.
ERPGoodObj
,
isChooseServicePerson
=
model
.
IsChooseServicePerson
,
isChooseServicePerson
=
model
.
IsChooseServicePerson
,
depositMoney
=
model
.
DepositMoney
,
depositMoney
=
model
.
DepositMoney
,
goodsclassify
=
model
.
GoodsClassify
});
});
}
}
}
}
...
@@ -432,6 +433,30 @@ namespace Mall.WebApi.Controllers.MallBase
...
@@ -432,6 +433,30 @@ namespace Mall.WebApi.Controllers.MallBase
return
ApiResult
.
Success
(
""
,
Robj
);
return
ApiResult
.
Success
(
""
,
Robj
);
}
}
/// <summary>
/// 获取门店服务人员
/// </summary>
/// <returns></returns>
[
HttpPost
]
public
ApiResult
GetAppletOfflineServicePersion
(
object
requestMsg
)
{
var
req
=
JsonConvert
.
DeserializeObject
<
RequestParm
>(
requestMsg
.
ToString
());
if
(
req
.
MallBaseId
<=
0
)
{
return
ApiResult
.
ParamIsNull
();
}
JObject
prams
=
JObject
.
Parse
(
req
.
msg
.
ToString
());
int
GoodsId
=
prams
.
GetInt
(
"GoodsId"
,
0
);
int
StoreId
=
prams
.
GetInt
(
"StoreId"
,
0
);
if
(
StoreId
<=
0
||
GoodsId
<=
0
)
{
return
ApiResult
.
ParamIsNull
(
message
:
"请选择门店"
);
}
int
UserId
=
req
.
UserId
;
object
Robj
=
productModule
.
GetAppletOfflineServicePersionModule
(
GoodsId
,
UserId
,
req
.
SmallShopsId
,
req
.
TenantId
,
req
.
MallBaseId
,
storeId
:
StoreId
);
return
ApiResult
.
Success
(
""
,
Robj
);
}
/// <summary>
/// <summary>
/// 预定页面获取商品分类列表
/// 预定页面获取商品分类列表
/// </summary>
/// </summary>
...
...
Mall.WebApi/Controllers/Product/AppletOrderController.cs
View file @
e6c8625b
...
@@ -748,6 +748,22 @@ namespace Mall.WebApi.Controllers.MallBase
...
@@ -748,6 +748,22 @@ namespace Mall.WebApi.Controllers.MallBase
return
flag
?
ApiResult
.
Success
(
message
:
message
,
data
:
new
{
demodel
.
OrderId
})
:
ApiResult
.
Failed
(
message
:
message
);
return
flag
?
ApiResult
.
Success
(
message
:
message
,
data
:
new
{
demodel
.
OrderId
})
:
ApiResult
.
Failed
(
message
:
message
);
}
}
/// <summary>
/// 线下服务下单
/// </summary>
/// <returns></returns>
[
HttpPost
]
public
ApiResult
SetOfflineOrderServicepersion
()
{
var
req
=
RequestParm
;
var
userInfo
=
AppletUserInfo
;
JObject
parms
=
JObject
.
Parse
(
req
.
msg
.
ToString
());
int
OrderId
=
parms
.
GetInt
(
"OrderId"
);
int
ServicepersonalId
=
parms
.
GetInt
(
"ServicepersonalId"
);
bool
flag
=
orderModule
.
SetOfflineOrderServicepersionModule
(
OrderId
,
ServicepersonalId
);
return
flag
?
ApiResult
.
Success
()
:
ApiResult
.
Failed
();
}
/// <summary>
/// <summary>
/// ERP下单
/// ERP下单
/// </summary>
/// </summary>
...
...
Mall.WebApi/Controllers/Reserve/OSGoodsController.cs
View file @
e6c8625b
...
@@ -83,8 +83,6 @@ namespace Mall.WebApi.Controllers.Reserve
...
@@ -83,8 +83,6 @@ namespace Mall.WebApi.Controllers.Reserve
return
ApiResult
.
Success
(
""
,
pagelist
);
return
ApiResult
.
Success
(
""
,
pagelist
);
}
}
/// <summary>
/// <summary>
/// 商品导出
/// 商品导出
/// </summary>
/// </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