mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 18:43:26 +08:00
【修复】修复多商品合并下单,其中一商品库存不足,导致整个下单失败的问题。
【修复】修复下单更改库存失败,订单状态依然待支付的问题。
This commit is contained in:
@@ -835,7 +835,7 @@ namespace CoreCms.Net.Repository
|
||||
//更新记录。
|
||||
bl = DbClient.Updateable<CoreCmsProducts>()
|
||||
.SetColumns(it => it.freezeStock == it.freezeStock + num)
|
||||
.Where(p => p.id == productModel.id && insertNum >= num).ExecuteCommandHasChange();
|
||||
.Where(p => p.id == productModel.id && insertNum >= num && p.freezeStock < p.stock).ExecuteCommandHasChange();
|
||||
break;
|
||||
case "send": //发货
|
||||
bl = DbClient.Updateable<CoreCmsProducts>()
|
||||
|
||||
Reference in New Issue
Block a user