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
9a658bc8
Commit
9a658bc8
authored
Apr 02, 2021
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
储值卡订单对接
parent
4a19043f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
7584 additions
and
7094 deletions
+7584
-7094
OrderPaymentTypeEnum.cs
Mall.Common/Enum/Goods/OrderPaymentTypeEnum.cs
+5
-0
RB_Goods_Order.cs
Mall.Model/Entity/Product/RB_Goods_Order.cs
+10
-0
RB_Goods_OrderDetail.cs
Mall.Model/Entity/Product/RB_Goods_OrderDetail.cs
+15
-0
RB_Goods_Order_Extend.cs
Mall.Model/Extend/Product/RB_Goods_Order_Extend.cs
+5
-0
OrderModule.cs
Mall.Module.Product/OrderModule.cs
+206
-7085
OrderModule_Part.cs
Mall.Module.Product/OrderModule_Part.cs
+7275
-8
RB_Member_DepositBalanceRepository.cs
Mall.Repository/User/RB_Member_DepositBalanceRepository.cs
+1
-1
AppletOrderController.cs
Mall.WebApi/Controllers/Product/AppletOrderController.cs
+2
-0
OrderController.cs
Mall.WebApi/Controllers/Product/OrderController.cs
+4
-0
FinanceModule.cs
Mall.WindowsService/Module/FinanceModule.cs
+61
-0
No files found.
Mall.Common/Enum/Goods/OrderPaymentTypeEnum.cs
View file @
9a658bc8
...
@@ -39,5 +39,10 @@ namespace Mall.Common.Enum.Goods
...
@@ -39,5 +39,10 @@ namespace Mall.Common.Enum.Goods
/// </summary>
/// </summary>
[
EnumField
(
"支付定金"
)]
[
EnumField
(
"支付定金"
)]
PayDeposit
=
5
,
PayDeposit
=
5
,
/// <summary>
/// 储值卡支付
/// </summary>
[
EnumField
(
"储值卡支付"
)]
PayCards
=
6
}
}
}
}
Mall.Model/Entity/Product/RB_Goods_Order.cs
View file @
9a658bc8
...
@@ -345,5 +345,15 @@ namespace Mall.Model.Entity.Product
...
@@ -345,5 +345,15 @@ namespace Mall.Model.Entity.Product
/// 版本来源 0默认商城 1教育
/// 版本来源 0默认商城 1教育
/// </summary>
/// </summary>
public
int
?
VersionSource
{
get
;
set
;
}
public
int
?
VersionSource
{
get
;
set
;
}
/// <summary>
/// 储值卡id
/// </summary>
public
int
DepositId
{
get
;
set
;
}
/// <summary>
/// 储值卡抵扣金额
/// </summary>
public
decimal
DepositMoney
{
get
;
set
;
}
}
}
}
}
Mall.Model/Entity/Product/RB_Goods_OrderDetail.cs
View file @
9a658bc8
...
@@ -378,5 +378,20 @@ namespace Mall.Model.Entity.Product
...
@@ -378,5 +378,20 @@ namespace Mall.Model.Entity.Product
/// 是否为可开发票商品,1-是
/// 是否为可开发票商品,1-是
/// </summary>
/// </summary>
public
int
IsNoTax
{
get
;
set
;
}
public
int
IsNoTax
{
get
;
set
;
}
/// <summary>
/// 储值卡抵扣金额
/// </summary>
public
decimal
DepositMoney
{
get
;
set
;
}
/// <summary>
/// 储值卡抵扣运费金额
/// </summary>
public
decimal
DepositFreightMoney
{
get
;
set
;
}
/// <summary>
/// 储值卡退回金额
/// </summary>
public
decimal
DepositRefundMoney
{
get
;
set
;
}
}
}
}
}
Mall.Model/Extend/Product/RB_Goods_Order_Extend.cs
View file @
9a658bc8
...
@@ -172,6 +172,11 @@ namespace Mall.Model.Extend.Product
...
@@ -172,6 +172,11 @@ namespace Mall.Model.Extend.Product
/// 使用课程卡id
/// 使用课程卡id
/// </summary>
/// </summary>
public
int
?
Use_Education_Id
{
get
;
set
;
}
public
int
?
Use_Education_Id
{
get
;
set
;
}
/// <summary>
/// 使用储值卡id
/// </summary>
public
int
Use_Deposit_Id
{
get
;
set
;
}
/// <summary>
/// <summary>
/// 优惠券描述
/// 优惠券描述
/// </summary>
/// </summary>
...
...
Mall.Module.Product/OrderModule.cs
View file @
9a658bc8
This diff is collapsed.
Click to expand it.
Mall.Module.Product/OrderModule_Part.cs
View file @
9a658bc8
This diff is collapsed.
Click to expand it.
Mall.Repository/
MarketingCent
er/RB_Member_DepositBalanceRepository.cs
→
Mall.Repository/
Us
er/RB_Member_DepositBalanceRepository.cs
View file @
9a658bc8
...
@@ -5,7 +5,7 @@ using System.Text;
...
@@ -5,7 +5,7 @@ using System.Text;
using
Mall.Model.Entity.User
;
using
Mall.Model.Entity.User
;
using
Mall.Model.Extend.User
;
using
Mall.Model.Extend.User
;
namespace
Mall.Repository.
MarketingCent
er
namespace
Mall.Repository.
Us
er
{
{
/// <summary>
/// <summary>
/// 储值卡合并/赠送仓储层
/// 储值卡合并/赠送仓储层
...
...
Mall.WebApi/Controllers/Product/AppletOrderController.cs
View file @
9a658bc8
...
@@ -242,6 +242,8 @@ namespace Mall.WebApi.Controllers.MallBase
...
@@ -242,6 +242,8 @@ namespace Mall.WebApi.Controllers.MallBase
x
.
Income
,
x
.
Income
,
x
.
FreightMoney
,
x
.
FreightMoney
,
x
.
CouponMoney
,
x
.
CouponMoney
,
x
.
DepositId
,
x
.
DepositMoney
,
x
.
PaymentWay
,
x
.
PaymentWay
,
PaymentWayName
=
x
.
PaymentWay
.
GetEnumName
(),
PaymentWayName
=
x
.
PaymentWay
.
GetEnumName
(),
DetailList
=
x
.
DetailList
.
Select
(
y
=>
new
DetailList
=
x
.
DetailList
.
Select
(
y
=>
new
...
...
Mall.WebApi/Controllers/Product/OrderController.cs
View file @
9a658bc8
...
@@ -100,6 +100,8 @@ namespace Mall.WebApi.Controllers.MallBase
...
@@ -100,6 +100,8 @@ namespace Mall.WebApi.Controllers.MallBase
CouponMoney
=
x
.
CouponMoney
??
0
,
CouponMoney
=
x
.
CouponMoney
??
0
,
IntegralMoney
=
(
x
.
DetailList
!=
null
&&
x
.
DetailList
.
Any
())
?
(
x
.
DetailList
.
Sum
(
x
=>
x
.
IntegralMoney
??
0
))
:
0
,
IntegralMoney
=
(
x
.
DetailList
!=
null
&&
x
.
DetailList
.
Any
())
?
(
x
.
DetailList
.
Sum
(
x
=>
x
.
IntegralMoney
??
0
))
:
0
,
IntegralNumber
=
(
x
.
DetailList
!=
null
&&
x
.
DetailList
.
Any
())
?
(
x
.
DetailList
.
Sum
(
x
=>
x
.
IntegralNumber
??
0
))
:
0
,
IntegralNumber
=
(
x
.
DetailList
!=
null
&&
x
.
DetailList
.
Any
())
?
(
x
.
DetailList
.
Sum
(
x
=>
x
.
IntegralNumber
??
0
))
:
0
,
x
.
DepositId
,
x
.
DepositMoney
,
MemberDiscountCouponList
=
x
.
MemberDiscountCouponList
.
Select
(
y
=>
new
MemberDiscountCouponList
=
x
.
MemberDiscountCouponList
.
Select
(
y
=>
new
{
{
y
.
Name
,
y
.
Name
,
...
@@ -2550,6 +2552,8 @@ namespace Mall.WebApi.Controllers.MallBase
...
@@ -2550,6 +2552,8 @@ namespace Mall.WebApi.Controllers.MallBase
x
.
Income
,
x
.
Income
,
x
.
FreightMoney
,
x
.
FreightMoney
,
x
.
CouponMoney
,
x
.
CouponMoney
,
x
.
DepositId
,
x
.
DepositMoney
,
x
.
PaymentWay
,
x
.
PaymentWay
,
PaymentWayName
=
x
.
PaymentWay
.
GetEnumName
(),
PaymentWayName
=
x
.
PaymentWay
.
GetEnumName
(),
DetailList
=
x
.
DetailList
.
Select
(
y
=>
new
DetailList
=
x
.
DetailList
.
Select
(
y
=>
new
...
...
Mall.WindowsService/Module/FinanceModule.cs
View file @
9a658bc8
...
@@ -158,6 +158,14 @@ namespace Mall.WindowsService.Module
...
@@ -158,6 +158,14 @@ namespace Mall.WindowsService.Module
/// 活动完成名单
/// 活动完成名单
/// </summary>
/// </summary>
private
static
readonly
RB_Goods_Activity_GetRepository
goods_Activity_GetRepository
=
new
RB_Goods_Activity_GetRepository
();
private
static
readonly
RB_Goods_Activity_GetRepository
goods_Activity_GetRepository
=
new
RB_Goods_Activity_GetRepository
();
/// <summary>
/// 储值卡
/// </summary>
private
static
readonly
RB_Member_DepositBuyRepository
member_DepositBuyRepository
=
new
RB_Member_DepositBuyRepository
();
/// <summary>
/// 储值卡流水
/// </summary>
private
static
readonly
RB_Member_DepositBalanceRepository
member_DepositBalanceRepository
=
new
RB_Member_DepositBalanceRepository
();
...
@@ -634,6 +642,20 @@ and DATE_FORMAT(b.PaymentTime,'%y-%m-%d')<DATE_FORMAT('{endDate}','%y-%m-%d') A
...
@@ -634,6 +642,20 @@ and DATE_FORMAT(b.PaymentTime,'%y-%m-%d')<DATE_FORMAT('{endDate}','%y-%m-%d') A
goodsRepository
.
Update
(
keyValues1
,
wheres1
);
goodsRepository
.
Update
(
keyValues1
,
wheres1
);
}
}
}
}
if
(
qitem
.
DepositId
>
0
)
{
Dictionary
<
string
,
object
>
keyValues1
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Goods_OrderDetail_Extend
.
DepositRefundMoney
),
ditem
.
DepositMoney
+
ditem
.
DepositFreightMoney
}
};
List
<
WhereHelper
>
wheres1
=
new
List
<
WhereHelper
>()
{
new
WhereHelper
(){
FiledName
=
nameof
(
RB_Goods_OrderDetail_Extend
.
Id
),
FiledValue
=
ditem
.
Id
,
OperatorEnum
=
OperatorEnum
.
Equal
}
};
goods_OrderDetailRepository
.
Update
(
keyValues1
,
wheres1
);
}
goods_LogRepository
.
Insert
(
new
Mall
.
Model
.
Entity
.
Product
.
RB_Goods_Log
()
goods_LogRepository
.
Insert
(
new
Mall
.
Model
.
Entity
.
Product
.
RB_Goods_Log
()
{
{
Id
=
0
,
Id
=
0
,
...
@@ -704,6 +726,45 @@ and DATE_FORMAT(b.PaymentTime,'%y-%m-%d')<DATE_FORMAT('{endDate}','%y-%m-%d') A
...
@@ -704,6 +726,45 @@ and DATE_FORMAT(b.PaymentTime,'%y-%m-%d')<DATE_FORMAT('{endDate}','%y-%m-%d') A
member_CouponRepository
.
Update
(
keyValues1
,
wheres1
);
member_CouponRepository
.
Update
(
keyValues1
,
wheres1
);
}
}
}
}
//储值卡回滚
if
(
qitem
.
DepositId
>
0
)
{
var
depositModel
=
member_DepositBuyRepository
.
GetEntity
(
qitem
.
DepositId
);
if
(
depositModel
!=
null
)
{
Dictionary
<
string
,
object
>
keyValues1
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Member_DepositBuy_Extend
.
SurplusPrice
),
depositModel
.
SurplusPrice
+
qitem
.
DepositMoney
}
};
List
<
WhereHelper
>
wheres1
=
new
List
<
WhereHelper
>()
{
new
WhereHelper
(){
FiledName
=
nameof
(
RB_Member_DepositBuy_Extend
.
Id
),
FiledValue
=
depositModel
.
Id
,
OperatorEnum
=
OperatorEnum
.
Equal
}
};
member_DepositBuyRepository
.
Update
(
keyValues1
,
wheres1
);
member_DepositBalanceRepository
.
Insert
(
new
RB_Member_DepositBalance
()
{
Id
=
0
,
UserId
=
umodel
.
Id
,
Balance
=
depositModel
.
SurplusPrice
,
CouponIco
=
depositModel
.
CouponIco
,
CreateDate
=
DateTime
.
Now
,
DepositPrice
=
depositModel
.
DepositPrice
,
MallBaseId
=
umodel
.
MallBaseId
,
MergeType
=
3
,
Name
=
depositModel
.
Name
,
NewDepositBuyId
=
0
,
OldDepositBuyId
=
0
,
Remarks
=
"订单"
+
qitem
.
OrderNo
+
"取消,退回使用储值卡抵扣"
+
qitem
.
DepositMoney
+
"金额"
,
SalePrice
=
depositModel
.
SalePrice
,
Status
=
0
,
Surplus
=
depositModel
.
SurplusPrice
+
qitem
.
DepositMoney
,
TenantId
=
umodel
.
TenantId
,
Type
=
Common
.
Enum
.
MarketingCenter
.
RecordTypeEnum
.
Income
});
}
}
//余额支付回滚
//余额支付回滚
if
(
qitem
.
OrderClassify
==
2
&&
qitem
.
EducationMoney
>
0
)
if
(
qitem
.
OrderClassify
==
2
&&
qitem
.
EducationMoney
>
0
)
...
...
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