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
26709c8b
Commit
26709c8b
authored
Oct 29, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增订单
parent
d2d4cdb1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1205 additions
and
1 deletion
+1205
-1
RB_Goods_Order.cs
Mall.Model/Entity/Product/RB_Goods_Order.cs
+7
-1
OrderModule.cs
Mall.Module.Product/OrderModule.cs
+1141
-0
AppletOrderController.cs
Mall.WebApi/Controllers/Product/AppletOrderController.cs
+57
-0
No files found.
Mall.Model/Entity/Product/RB_Goods_Order.cs
View file @
26709c8b
...
...
@@ -309,7 +309,7 @@ namespace Mall.Model.Entity.Product
/// </summary>
public
int
?
SmallShopsId
{
get
;
set
;
}
/// <summary>
/// 订单分类 0正常订单 1司导订单 2教育订单
/// 订单分类 0正常订单 1司导订单 2教育订单
3-线下服务订单
/// </summary>
public
int
OrderClassify
{
get
;
set
;
}
/// <summary>
...
...
@@ -320,5 +320,11 @@ namespace Mall.Model.Entity.Product
/// 课程卡抵扣金额
/// </summary>
public
decimal
?
EducationMoney
{
get
;
set
;
}
/// <summary>
/// 门店编号
/// </summary>
public
int
StoresId
{
get
;
set
;
}
}
}
Mall.Module.Product/OrderModule.cs
View file @
26709c8b
This diff is collapsed.
Click to expand it.
Mall.WebApi/Controllers/Product/AppletOrderController.cs
View file @
26709c8b
...
...
@@ -694,6 +694,63 @@ namespace Mall.WebApi.Controllers.MallBase
return
orderModule
.
SetAppletSDGoodsOrderInfo
(
demodel
);
}
/// <summary>
/// 线下服务下单
/// </summary>
/// <returns></returns>
[
HttpPost
]
public
ApiResult
SetAppletOfflineGoodsOrderInfo
()
{
var
req
=
RequestParm
;
var
userInfo
=
AppletUserInfo
;
RB_Goods_Order_Extend
demodel
=
JsonConvert
.
DeserializeObject
<
RB_Goods_Order_Extend
>(
req
.
msg
.
ToString
());
if
(
string
.
IsNullOrEmpty
(
demodel
.
Consignee
))
{
return
ApiResult
.
ParamIsNull
(
"请传递联系人"
);
}
if
(
string
.
IsNullOrEmpty
(
demodel
.
Mobile
))
{
return
ApiResult
.
ParamIsNull
(
"请传递联系人手机号码"
);
}
demodel
.
DeliveryMethod
=
Common
.
Enum
.
Goods
.
OrderDeliveryMethodEnum
.
VerificationShop
;
if
((
demodel
.
Income
??
0
)
<=
0
)
{
return
ApiResult
.
ParamIsNull
(
"订单金额不正确"
);
}
if
(
demodel
.
StoresId
<=
0
)
{
return
ApiResult
.
ParamIsNull
(
"请选择服务门店"
);
}
demodel
.
BuyerMessage
??=
""
;
//买家留言
demodel
.
OrderSource
??=
Common
.
Enum
.
User
.
UserSourceEnum
.
WeiXin
;
#
region
赋默认值
demodel
.
TenantId
=
userInfo
.
TenantId
;
demodel
.
MallBaseId
=
userInfo
.
MallBaseId
;
demodel
.
Country
??=
2
;
demodel
.
OrderStatus
=
Common
.
Enum
.
Goods
.
OrderStatusEnum
.
NonPayment
;
demodel
.
CreateDate
=
DateTime
.
Now
;
demodel
.
Fee
??=
0
;
demodel
.
FreightMoney
??=
0
;
demodel
.
HistoryOrderStatus
??=
0
;
demodel
.
IsApplyForCancel
??=
2
;
demodel
.
IsOrderCommission
??=
2
;
demodel
.
MerchantsNo
??=
""
;
demodel
.
Recycled
??=
2
;
demodel
.
Refund
??=
0
;
demodel
.
Status
=
0
;
demodel
.
AnchorName
??=
""
;
demodel
.
UpdateDate
=
DateTime
.
Now
;
demodel
.
UserId
=
userInfo
.
UserId
;
demodel
.
SmallShopsId
=
req
.
SmallShopsId
;
demodel
.
OrderClassify
=
3
;
demodel
.
DestinationAddress
??=
""
;
#
endregion
bool
flag
=
orderModule
.
SetAppletOfflineGoodsOrderModule
(
demodel
,
out
string
message
);
return
flag
?
ApiResult
.
Success
(
message
:
message
)
:
ApiResult
.
Failed
(
message
:
message
);
}
/// <summary>
/// ERP下单
/// </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