|
|
@@ -123,6 +123,17 @@ namespace BPA.KitChen.GroupMealOrder.Application.Service.WeighOrder.Service |
|
|
|
/// <returns></returns> |
|
|
|
public async Task<bool> AddWeighOrderGoods(List<WeighOrderGoodsCreateDto> inputDto) |
|
|
|
{ |
|
|
|
|
|
|
|
try |
|
|
|
{ |
|
|
|
|
|
|
|
} |
|
|
|
catch (Exception e) |
|
|
|
{ |
|
|
|
Console.WriteLine(e); |
|
|
|
throw; |
|
|
|
} |
|
|
|
|
|
|
|
var ids = inputDto.Select(x => x.OrderId).FirstOrDefault(); |
|
|
|
var weighOrder = await db.Queryable<BPA_WeighOrder>().FirstAsync(x => x.Id == ids); |
|
|
|
if (weighOrder == null || weighOrder.States == 1) |
|
|
@@ -184,6 +195,8 @@ namespace BPA.KitChen.GroupMealOrder.Application.Service.WeighOrder.Service |
|
|
|
|
|
|
|
weighOrder.TotalAmount = TotalAmount; |
|
|
|
|
|
|
|
db.Updateable(weighOrder).ExecuteCommandAsync(); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|