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
abca7b79
Commit
abca7b79
authored
Jun 23, 2020
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交代码
parent
1eff8cd4
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
124 additions
and
2 deletions
+124
-2
OrderModule.cs
Mall.Module.Product/OrderModule.cs
+16
-2
PayUtil.cs
Mall.WebApi/App_Code/PayUtil.cs
+2
-0
OrderController.cs
Mall.WebApi/Controllers/Product/OrderController.cs
+106
-0
No files found.
Mall.Module.Product/OrderModule.cs
View file @
abca7b79
...
...
@@ -7693,6 +7693,20 @@ namespace Mall.Module.Product
{
return
goods_OrderDetailRepository
.
GetSupplierOrderList
(
dmodel
);
}
/// <summary>
/// 获取订单明细列表
/// </summary>
/// <param name="pageIndex"></param>
/// <param name="pageSize"></param>
/// <param name="count"></param>
/// <param name="dmodel"></param>
/// <returns></returns>
public
List
<
RB_Goods_OrderDetail_Extend
>
GetOrderDetailList
(
RB_Goods_OrderDetail_Extend
dmodel
)
{
return
goods_OrderDetailRepository
.
GetOrderDetailList
(
dmodel
);
}
#
endregion
}
}
Mall.WebApi/App_Code/PayUtil.cs
View file @
abca7b79
...
...
@@ -351,6 +351,8 @@ namespace Mall.WebApi.App_Code
{
"OrderNumber"
,
outTradeNo
}
}
};
}
}
...
...
Mall.WebApi/Controllers/Product/OrderController.cs
View file @
abca7b79
...
...
@@ -42,6 +42,7 @@ namespace Mall.WebApi.Controllers.MallBase
private
readonly
OrderModule
orderModule
=
new
OrderModule
();
private
readonly
MiniProgramMsgModule
miniProgramMsgModule
=
new
MiniProgramMsgModule
();
#
region
订单列表
...
...
@@ -588,6 +589,33 @@ namespace Mall.WebApi.Controllers.MallBase
var
Robj
=
new
App_Code
.
PayUtil
().
Refund
(
pram
,
mallModel
,
_accessor
);
if
(
Robj
.
IsSuccess
)
{
//获取商品信息
var
orderGoodsList
=
orderModule
.
GetOrderDetailList
(
new
RB_Goods_OrderDetail_Extend
{
TenantId
=
omodel
.
TenantId
,
MallBaseId
=
omodel
.
MallBaseId
,
OrderId
=
omodel
.
OrderId
});
string
goodsName
=
orderGoodsList
.
FirstOrDefault
().
GoodsName
;
if
(
orderGoodsList
.
Count
>
1
)
{
if
(
goodsName
.
Length
>
12
)
{
goodsName
=
goodsName
.
Substring
(
0
,
11
)
+
".."
;
}
goodsName
+=
"等"
+
orderGoodsList
.
Count
+
"件商品"
;
}
else
{
if
(
goodsName
.
Length
>
18
)
{
goodsName
=
goodsName
.
Substring
(
0
,
18
)
+
".."
;
}
}
//退款成功发送退款成功的订阅消息
//根据订单下单人获取openid
var
userModel
=
orderModule
.
GetMemberUserInfo
(
omodel
.
UserId
.
Value
);
if
(
userModel
!=
null
)
{
miniProgramMsgModule
.
SendOrderRefundMsg
(
mallModel
.
TenantId
.
Value
,
mallModel
.
MallBaseId
,
userModel
.
OpenId
,
omodel
.
CancelRemark
,
omodel
.
OrderNo
,
(
omodel
.
Income
??
0
).
ToString
(),
goodsName
);
}
bool
flag
=
orderModule
.
SetOrderForcedToCancel
(
omodel
,
RefundOrderNo
,
req
.
TenantId
,
req
.
MallBaseId
);
if
(
flag
)
{
...
...
@@ -764,6 +792,32 @@ namespace Mall.WebApi.Controllers.MallBase
var
Robj
=
new
App_Code
.
PayUtil
().
Refund
(
pram
,
mallModel
,
_accessor
);
if
(
Robj
.
IsSuccess
)
{
//获取商品信息
var
orderGoodsList
=
orderModule
.
GetOrderDetailList
(
new
RB_Goods_OrderDetail_Extend
{
TenantId
=
omodel
.
TenantId
,
MallBaseId
=
omodel
.
MallBaseId
,
OrderId
=
omodel
.
OrderId
});
string
goodsName
=
orderGoodsList
.
FirstOrDefault
().
GoodsName
;
if
(
orderGoodsList
.
Count
>
1
)
{
if
(
goodsName
.
Length
>
12
)
{
goodsName
=
goodsName
.
Substring
(
0
,
11
)
+
".."
;
}
goodsName
+=
"等"
+
orderGoodsList
.
Count
+
"件商品"
;
}
else
{
if
(
goodsName
.
Length
>
18
)
{
goodsName
=
goodsName
.
Substring
(
0
,
18
)
+
".."
;
}
}
//退款成功发送退款成功的订阅消息
//根据订单下单人获取openid
var
userModel
=
orderModule
.
GetMemberUserInfo
(
omodel
.
UserId
.
Value
);
if
(
userModel
!=
null
)
{
miniProgramMsgModule
.
SendOrderRefundMsg
(
mallModel
.
TenantId
.
Value
,
mallModel
.
MallBaseId
,
userModel
.
OpenId
,
omodel
.
CancelRemark
,
omodel
.
OrderNo
,
(
omodel
.
Income
??
0
).
ToString
(),
goodsName
);
}
bool
flag
=
orderModule
.
SetOrderApplyForCancelAudit
(
omodel
,
Type
,
Remark
,
RefundOrderNo
,
req
.
TenantId
,
req
.
MallBaseId
);
if
(
flag
)
{
...
...
@@ -1560,6 +1614,32 @@ namespace Mall.WebApi.Controllers.MallBase
var
Robj
=
new
App_Code
.
PayUtil
().
Refund
(
pram
,
mallModel
,
_accessor
);
if
(
Robj
.
IsSuccess
)
{
//获取商品信息
var
orderGoodsList
=
orderModule
.
GetOrderDetailList
(
new
RB_Goods_OrderDetail_Extend
{
TenantId
=
orderModel
.
TenantId
,
MallBaseId
=
orderModel
.
MallBaseId
,
OrderId
=
orderModel
.
OrderId
});
string
goodsName
=
orderGoodsList
.
FirstOrDefault
().
GoodsName
;
if
(
orderGoodsList
.
Count
>
1
)
{
if
(
goodsName
.
Length
>
12
)
{
goodsName
=
goodsName
.
Substring
(
0
,
11
)
+
".."
;
}
goodsName
+=
"等"
+
orderGoodsList
.
Count
+
"件商品"
;
}
else
{
if
(
goodsName
.
Length
>
18
)
{
goodsName
=
goodsName
.
Substring
(
0
,
18
)
+
".."
;
}
}
//退款成功发送退款成功的订阅消息
//根据订单下单人获取openid
var
userModel
=
orderModule
.
GetMemberUserInfo
(
orderModel
.
UserId
.
Value
);
if
(
userModel
!=
null
)
{
miniProgramMsgModule
.
SendOrderRefundMsg
(
mallModel
.
TenantId
.
Value
,
mallModel
.
MallBaseId
,
userModel
.
OpenId
,
orderModel
.
CancelRemark
,
orderModel
.
OrderNo
,
(
orderModel
.
Income
??
0
).
ToString
(),
goodsName
);
}
bool
flag
=
orderModule
.
SetOrderAfterSaleForRefunds
(
ReOrderId
,
Refund
,
RefundOrderNo
,
req
.
TenantId
,
req
.
MallBaseId
);
if
(
flag
==
false
)
{
...
...
@@ -1660,6 +1740,32 @@ namespace Mall.WebApi.Controllers.MallBase
var
Robj
=
new
App_Code
.
PayUtil
().
Refund
(
pram
,
mallModel
,
_accessor
);
if
(
Robj
.
IsSuccess
)
{
//获取商品信息
var
orderGoodsList
=
orderModule
.
GetOrderDetailList
(
new
RB_Goods_OrderDetail_Extend
{
TenantId
=
orderModel
.
TenantId
,
MallBaseId
=
orderModel
.
MallBaseId
,
OrderId
=
orderModel
.
OrderId
});
string
goodsName
=
orderGoodsList
.
FirstOrDefault
().
GoodsName
;
if
(
orderGoodsList
.
Count
>
1
)
{
if
(
goodsName
.
Length
>
12
)
{
goodsName
=
goodsName
.
Substring
(
0
,
11
)
+
".."
;
}
goodsName
+=
"等"
+
orderGoodsList
.
Count
+
"件商品"
;
}
else
{
if
(
goodsName
.
Length
>
18
)
{
goodsName
=
goodsName
.
Substring
(
0
,
18
)
+
".."
;
}
}
//退款成功发送退款成功的订阅消息
//根据订单下单人获取openid
var
userModel
=
orderModule
.
GetMemberUserInfo
(
orderModel
.
UserId
.
Value
);
if
(
userModel
!=
null
)
{
miniProgramMsgModule
.
SendOrderRefundMsg
(
mallModel
.
TenantId
.
Value
,
mallModel
.
MallBaseId
,
userModel
.
OpenId
,
orderModel
.
CancelRemark
,
orderModel
.
OrderNo
,
(
orderModel
.
Income
??
0
).
ToString
(),
goodsName
);
}
bool
flag
=
orderModule
.
SetOrderAfterSaleForRefunds
(
ReOrderId
,
Refund
,
RefundOrderNo
,
req
.
TenantId
,
req
.
MallBaseId
);
if
(
flag
==
false
)
{
...
...
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