gwbvipvip před 9 měsíci
rodič
revize
dfed0148a9
2 změnil soubory, kde provedl 9 přidání a 0 odebrání
  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 Zobrazit soubor

@@ -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 Zobrazit soubor

@@ -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)


Načítá se…
Zrušit
Uložit