|
|
@@ -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; |
|
|
|
} |
|
|
|
|
|
|
|