gwbvipvip пре 9 месеци
родитељ
комит
dfed0148a9
2 измењених фајлова са 9 додато и 0 уклоњено
  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 Прегледај датотеку

@@ -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 Прегледај датотеку

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


Loading…
Откажи
Сачувај