Commit d70204ea authored by liudong1993's avatar liudong1993

1

parent 6bbfe3e6
...@@ -7823,7 +7823,7 @@ namespace Mall.Module.Product ...@@ -7823,7 +7823,7 @@ namespace Mall.Module.Product
#region 验证咖啡劵 #region 验证咖啡劵
if (demodel.GoodsEduType == 1) { if (demodel.GoodsEduType == 1) {
//咖啡劵商品需唯一 //咖啡劵商品需唯一
var kfList = goodsRepository.GetList(new RB_Goods_Extend() { MallBaseId = demodel.MallBaseId, GoodsEduType = 1 }); var kfList = goodsRepository.GetSingleList(new RB_Goods_Extend() { MallBaseId = demodel.MallBaseId, GoodsEduType = 1 });
if (kfList.Any()) { if (kfList.Any()) {
return false; return false;
} }
...@@ -7965,21 +7965,21 @@ namespace Mall.Module.Product ...@@ -7965,21 +7965,21 @@ namespace Mall.Module.Product
} }
if (demodel.GoodsEduType == 1) { if (demodel.GoodsEduType == 1) {
//咖啡劵商品 //咖啡劵商品 (分布式事务 无法跨服保存)
eduGoodsRepository.Insert(new Model.Entity.Coffee.RB_Goods() //eduGoodsRepository.Insert(new Model.Entity.Coffee.RB_Goods()
{ //{
CoverImage = demodel.CarouselImageList.Where(x => x.Type == 0).FirstOrDefault()?.Path ?? "", // CoverImage = demodel.CarouselImageList.Where(x => x.Type == 0).FirstOrDefault()?.Path ?? "",
CreateDate = DateTime.Now, // CreateDate = DateTime.Now,
GoodsName = demodel.Name, // GoodsName = demodel.Name,
GoodsType = demodel.GoodsEduType, // GoodsType = demodel.GoodsEduType,
Group_Id = 100000, // Group_Id = 100000,
Id = 0, // Id = 0,
MallBaseId = demodel.MallBaseId, // MallBaseId = demodel.MallBaseId,
MallGoodsId = Id, // MallGoodsId = Id,
SellingPrice = demodel.SellingPrice ??0, // SellingPrice = demodel.SellingPrice ??0,
Status = 0, // Status = 0,
UpdateDate = DateTime.Now // UpdateDate = DateTime.Now
}); //});
} }
} }
} }
......
...@@ -421,7 +421,7 @@ namespace Mall.Module.User ...@@ -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.OrderStatus), Common.Enum.Goods.OrderStatusEnum.WaitReceiving);
keyValues.Add(nameof(RB_Goods_Order_Extend.DeliveryTime), DateTime.Now); 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) //if (oldOrder.OrderEduType == 2)
//教育订单 下单后 直接完成 无法取消订单 无法申请售后 //教育订单 下单后 直接完成 无法取消订单 无法申请售后
...@@ -651,17 +651,17 @@ namespace Mall.Module.User ...@@ -651,17 +651,17 @@ namespace Mall.Module.User
else else
{ {
Dictionary<string, object> keyValues1 = new Dictionary<string, object>() { 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.TotalBuyNum), ccmodel.TotalBuyNum + BuyNum },
{ nameof(Model.Extend.Coffee.RB_Member_CoffeeCoupons_Extend.SurplusBugNum), ccmodel.SurplusBugNum + 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.UpdateDate), DateTime.Now},
}; };
List<WhereHelper> wheres1 = new List<WhereHelper>() { List<WhereHelper> wheres1 = new List<WhereHelper>() {
new WhereHelper(){ new WhereHelper(){
FiledName = nameof(Model.Extend.Coffee.RB_Member_CoffeeCoupons_Extend.Id), FiledName = nameof(Model.Extend.Coffee.RB_Member_CoffeeCoupons_Extend.Id),
FiledValue = ccmodel.Id, FiledValue = ccmodel.Id,
OperatorEnum =OperatorEnum.Equal OperatorEnum =OperatorEnum.Equal
} }
}; };
member_CoffeeCouponsRepository.Update(keyValues1, wheres1); member_CoffeeCouponsRepository.Update(keyValues1, wheres1);
} }
foreach (var qitem in orderGoodsList) foreach (var qitem in orderGoodsList)
...@@ -840,7 +840,7 @@ namespace Mall.Module.User ...@@ -840,7 +840,7 @@ namespace Mall.Module.User
Income = oldOrder.Income ?? 0, Income = oldOrder.Income ?? 0,
Fee = oldOrder.Fee ?? 0, Fee = oldOrder.Fee ?? 0,
Refund = 0, Refund = 0,
Remark = "", Remark = detailModel.PresentCoffeeNum > 0 ? "购买" + detailModel.Number + "杯,赠送" + detailModel.PresentCoffeeNum + "杯" : "",
OrderStatus = 2, OrderStatus = 2,
PaymentTime = DateTime.Now, PaymentTime = DateTime.Now,
CancelTime = null, CancelTime = null,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment