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
bff6a590
Commit
bff6a590
authored
Nov 02, 2020
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交预约看板部分代码
parent
a4bb8dc6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
5 deletions
+42
-5
ReserveController.cs
Mall.WebApi/Controllers/Reserve/ReserveController.cs
+42
-5
No files found.
Mall.WebApi/Controllers/Reserve/ReserveController.cs
View file @
bff6a590
...
...
@@ -6,6 +6,7 @@ using Mall.Common.API;
using
Mall.Common.Enum.Reserve
;
using
Mall.Common.Plugin
;
using
Mall.Model.Entity.Reserve
;
using
Mall.Model.Entity.User
;
using
Mall.Model.Extend.Reserve
;
using
Mall.Model.Extend.User
;
using
Mall.Module.Reserve
;
...
...
@@ -15,6 +16,7 @@ using Microsoft.AspNetCore.Http;
using
Microsoft.AspNetCore.Mvc
;
using
Newtonsoft.Json
;
using
Newtonsoft.Json.Linq
;
using
VT.FW.AOP
;
namespace
Mall.WebApi.Controllers.Reserve
{
...
...
@@ -24,10 +26,16 @@ namespace Mall.WebApi.Controllers.Reserve
[
EnableCors
(
"AllowCors"
)]
public
class
ReserveController
:
BaseController
{
private
readonly
ReserveModule
reserveModule
=
new
ReserveModule
();
private
Module
.
User
.
UserModule
UserModule
=
new
Module
.
User
.
UserModule
();
private
readonly
ReserveModule
reserveModule
=
new
ReserveModule
();
private
readonly
Module
.
User
.
UserModule
UserModule
=
new
Module
.
User
.
UserModule
();
/// <summary>
/// 线下服务商品处理类对象
/// </summary>
private
readonly
Module
.
Product
.
OfflineGoodsModule
offlineGoodsModule
=
AOPHelper
.
CreateAOPObject
<
Module
.
Product
.
OfflineGoodsModule
>();
/// <summary>
/// 门店处理类对象
/// </summary>
private
readonly
Module
.
User
.
ContentModule
contentModule
=
AOPHelper
.
CreateAOPObject
<
Module
.
User
.
ContentModule
>();
#
region
海报
/// <summary>
...
...
@@ -90,7 +98,7 @@ namespace Mall.WebApi.Controllers.Reserve
{
demodel
.
BusinessHoursJson
=
JsonConvert
.
SerializeObject
(
demodel
.
BusinessHoursList
);
}
if
(
demodel
.
PayTypeList
==
null
||
!
demodel
.
PayTypeList
.
Any
())
if
(
demodel
.
PayTypeList
==
null
||
!
demodel
.
PayTypeList
.
Any
())
{
return
ApiResult
.
Failed
(
"请选择付款方式"
);
}
...
...
@@ -895,6 +903,35 @@ namespace Mall.WebApi.Controllers.Reserve
}
#
endregion
#
region
预约看板
/// <summary>
/// 获取详情
/// </summary>
/// <returns></returns>
[
HttpPost
]
public
ApiResult
GetStoreOrderInfo
()
{
var
parms
=
RequestParm
;
var
query
=
JsonConvert
.
DeserializeObject
<
RB_Stores_Extend
>(
RequestParm
.
msg
.
ToString
());
query
.
TenantId
=
UserInfo
.
TenantId
;
query
.
MallBaseId
=
parms
.
MallBaseId
;
var
oldLogisticsModel
=
contentModule
.
GetStoresListModule
(
query
).
FirstOrDefault
();
if
(
oldLogisticsModel
==
null
)
{
oldLogisticsModel
=
new
RB_Stores_Extend
();
}
else
{
//获取门店下面的服务人员
var
servicePersinalList
=
reserveModule
.
GetServicePersonalList
(
new
RB_Reserve_ServicePersonal_Extend
{
TenantId
=
UserInfo
.
TenantId
,
MallBaseId
=
parms
.
MallBaseId
,
StoreId
=
oldLogisticsModel
.
Id
});
}
return
ApiResult
.
Success
(
""
,
oldLogisticsModel
);
}
#
endregion
}
}
\ No newline at end of file
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