This commit is contained in:
2025-11-28 11:51:30 +08:00
parent 7865e924dd
commit 42cf4b15f8
3 changed files with 14 additions and 11 deletions

View File

@@ -2,6 +2,7 @@
using MyCode.Project.Domain.Model;
using MyCode.Project.Domain.Repositories;
using MyCode.Project.Infrastructure.Common;
using MyCode.Project.Infrastructure.Extensions;
using MyCode.Project.Infrastructure.JackYun;
using MyCode.Project.Repositories;
using MyCode.Project.Repositories.Common;
@@ -119,8 +120,13 @@ namespace MyCode.Project.Services.Implementation
if(t.tradeOrderAssemblyGoodsDtoList!=null &&t.tradeOrderAssemblyGoodsDtoList.Count>0)
{
var items = AutoMapperHelper.AutoMappToList<JackOrdersItem, ComboItem>(t.tradeOrderAssemblyGoodsDtoList);
var goods = t.goodsDetail.Where(h => h.subTradeId == items[0].SubTradeId).FirstOrDefault();
decimal price = 0;
if (goods != null)
price = goods.ShareFavourableAfterFee.SafeValue();
items.ForEach(k =>
{
k.ShareFavourableAfterFee = price;
k.Id = Guid.NewGuid();
k.JackOrdersId = jackOrders.Id;
});