gwbvipvip 7 mesi fa
parent
commit
dfed0148a9
2 ha cambiato i file con 9 aggiunte e 0 eliminazioni
  1. +8
    -0
      BPA.KitChen.GroupMealOrder.Application/Service/WeighOrder/Dtos/WeighOrderDto.cs
  2. +1
    -0
      BPA.KitChen.GroupMealOrder.Application/Service/WeighOrder/Service/WeighOrderService.cs

+ 8
- 0
BPA.KitChen.GroupMealOrder.Application/Service/WeighOrder/Dtos/WeighOrderDto.cs Vedi File

@@ -32,6 +32,12 @@ namespace BPA.KitChen.GroupMealOrder.Application.Service.WeighOrder.Dtos
/// 会员信息
/// </summary>
public MemberInfoDto MemberInfo { get; set; }


/// <summary>
/// 是否免费的订单 不用付款的订单
/// </summary>
public bool IsFree { get; set; }
}

public class WeighOrderGoodsDto
@@ -73,6 +79,8 @@ namespace BPA.KitChen.GroupMealOrder.Application.Service.WeighOrder.Dtos
/// </summary>
public decimal GoodsWeight { get; set; }


/// <summary>
/// 商品属性
/// </summary>


+ 1
- 0
BPA.KitChen.GroupMealOrder.Application/Service/WeighOrder/Service/WeighOrderService.cs Vedi File

@@ -583,6 +583,7 @@ namespace BPA.KitChen.GroupMealOrder.Application.Service.WeighOrder.Service

foreach (var item in res)
{
item.IsFree =string.IsNullOrEmpty(item.TransactionId);
//查询订单商品
var orderGoods = await db.Queryable<BPA_WeighOrderGoods>()
.Where(x => x.OrderId == item.Id)


Caricamento…
Annulla
Salva