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
d70204ea
Commit
d70204ea
authored
Mar 08, 2022
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
6bbfe3e6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
28 deletions
+28
-28
ProductModule.cs
Mall.Module.Product/ProductModule.cs
+16
-16
UserCommonModule.cs
Mall.Module.User/UserCommonModule.cs
+12
-12
No files found.
Mall.Module.Product/ProductModule.cs
View file @
d70204ea
...
...
@@ -7823,7 +7823,7 @@ namespace Mall.Module.Product
#
region
验证咖啡劵
if
(
demodel
.
GoodsEduType
==
1
)
{
//咖啡劵商品需唯一
var
kfList
=
goodsRepository
.
GetList
(
new
RB_Goods_Extend
()
{
MallBaseId
=
demodel
.
MallBaseId
,
GoodsEduType
=
1
});
var
kfList
=
goodsRepository
.
Get
Single
List
(
new
RB_Goods_Extend
()
{
MallBaseId
=
demodel
.
MallBaseId
,
GoodsEduType
=
1
});
if
(
kfList
.
Any
())
{
return
false
;
}
...
...
@@ -7965,21 +7965,21 @@ namespace Mall.Module.Product
}
if
(
demodel
.
GoodsEduType
==
1
)
{
//咖啡劵商品
eduGoodsRepository
.
Insert
(
new
Model
.
Entity
.
Coffee
.
RB_Goods
()
{
CoverImage
=
demodel
.
CarouselImageList
.
Where
(
x
=>
x
.
Type
==
0
).
FirstOrDefault
()?.
Path
??
""
,
CreateDate
=
DateTime
.
Now
,
GoodsName
=
demodel
.
Name
,
GoodsType
=
demodel
.
GoodsEduType
,
Group_Id
=
100000
,
Id
=
0
,
MallBaseId
=
demodel
.
MallBaseId
,
MallGoodsId
=
Id
,
SellingPrice
=
demodel
.
SellingPrice
??
0
,
Status
=
0
,
UpdateDate
=
DateTime
.
Now
});
//咖啡劵商品
(分布式事务 无法跨服保存)
//
eduGoodsRepository.Insert(new Model.Entity.Coffee.RB_Goods()
//
{
//
CoverImage = demodel.CarouselImageList.Where(x => x.Type == 0).FirstOrDefault()?.Path ?? "",
//
CreateDate = DateTime.Now,
//
GoodsName = demodel.Name,
//
GoodsType = demodel.GoodsEduType,
//
Group_Id = 100000,
//
Id = 0,
//
MallBaseId = demodel.MallBaseId,
//
MallGoodsId = Id,
//
SellingPrice = demodel.SellingPrice ??0,
//
Status = 0,
//
UpdateDate = DateTime.Now
//
});
}
}
}
...
...
Mall.Module.User/UserCommonModule.cs
View file @
d70204ea
...
...
@@ -421,7 +421,7 @@ namespace Mall.Module.User
keyValues
.
Add
(
nameof
(
RB_Goods_Order_Extend
.
OrderStatus
),
Common
.
Enum
.
Goods
.
OrderStatusEnum
.
WaitReceiving
);
keyValues
.
Add
(
nameof
(
RB_Goods_Order_Extend
.
DeliveryTime
),
DateTime
.
Now
);
}
else
if
(
oldOrder
.
OrderClassify
==
2
||
oldOrder
.
VersionSource
==
1
)
else
if
(
oldOrder
.
OrderClassify
==
2
||
oldOrder
.
VersionSource
==
1
||
oldOrder
.
OrderEduType
==
1
)
{
//if (oldOrder.OrderEduType == 2)
//教育订单 下单后 直接完成 无法取消订单 无法申请售后
...
...
@@ -651,17 +651,17 @@ namespace Mall.Module.User
else
{
Dictionary
<
string
,
object
>
keyValues1
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
Model
.
Extend
.
Coffee
.
RB_Member_CoffeeCoupons_Extend
.
TotalBuyNum
),
ccmodel
.
TotalBuyNum
+
BuyNum
},
{
nameof
(
Model
.
Extend
.
Coffee
.
RB_Member_CoffeeCoupons_Extend
.
SurplusBugNum
),
ccmodel
.
SurplusBugNum
+
BuyNum
},
{
nameof
(
Model
.
Extend
.
Coffee
.
RB_Member_CoffeeCoupons_Extend
.
UpdateDate
),
DateTime
.
Now
},
};
{
nameof
(
Model
.
Extend
.
Coffee
.
RB_Member_CoffeeCoupons_Extend
.
TotalBuyNum
),
ccmodel
.
TotalBuyNum
+
BuyNum
},
{
nameof
(
Model
.
Extend
.
Coffee
.
RB_Member_CoffeeCoupons_Extend
.
SurplusBugNum
),
ccmodel
.
SurplusBugNum
+
BuyNum
},
{
nameof
(
Model
.
Extend
.
Coffee
.
RB_Member_CoffeeCoupons_Extend
.
UpdateDate
),
DateTime
.
Now
},
};
List
<
WhereHelper
>
wheres1
=
new
List
<
WhereHelper
>()
{
new
WhereHelper
(){
FiledName
=
nameof
(
Model
.
Extend
.
Coffee
.
RB_Member_CoffeeCoupons_Extend
.
Id
),
FiledValue
=
ccmodel
.
Id
,
OperatorEnum
=
OperatorEnum
.
Equal
}
};
new
WhereHelper
(){
FiledName
=
nameof
(
Model
.
Extend
.
Coffee
.
RB_Member_CoffeeCoupons_Extend
.
Id
),
FiledValue
=
ccmodel
.
Id
,
OperatorEnum
=
OperatorEnum
.
Equal
}
};
member_CoffeeCouponsRepository
.
Update
(
keyValues1
,
wheres1
);
}
foreach
(
var
qitem
in
orderGoodsList
)
...
...
@@ -840,7 +840,7 @@ namespace Mall.Module.User
Income
=
oldOrder
.
Income
??
0
,
Fee
=
oldOrder
.
Fee
??
0
,
Refund
=
0
,
Remark
=
""
,
Remark
=
detailModel
.
PresentCoffeeNum
>
0
?
"购买"
+
detailModel
.
Number
+
"杯,赠送"
+
detailModel
.
PresentCoffeeNum
+
"杯"
:
""
,
OrderStatus
=
2
,
PaymentTime
=
DateTime
.
Now
,
CancelTime
=
null
,
...
...
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