Browse Source

提交

master
gwbvipvip 8 months ago
parent
commit
d0d59d88eb
1 changed files with 11 additions and 0 deletions
  1. +11
    -0
      BPA.KitChen.GroupMealOrder.Application/Service/WeighOrder/Service/WeighOrderService.cs

+ 11
- 0
BPA.KitChen.GroupMealOrder.Application/Service/WeighOrder/Service/WeighOrderService.cs View File

@@ -176,6 +176,17 @@ namespace BPA.KitChen.GroupMealOrder.Application.Service.WeighOrder.Service

var res = await db.Insertable(orderGoods).ExecuteCommandAsync();

if (res>0)
{

var TotalAmount = db.Queryable<BPA_WeighOrderGoods>(
).Sum(x=>x.TotalAmount);

weighOrder.TotalAmount = TotalAmount;


}

return res > 0;
}



Loading…
Cancel
Save