Browse Source

提交

master
gwbvipvip 9 months ago
parent
commit
dfed0148a9
2 changed files with 9 additions and 0 deletions
  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 View 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 View 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)


Loading…
Cancel
Save