Commit 67c6db1c authored by 吴春's avatar 吴春

提交代码

parent b7f688fd
...@@ -3909,7 +3909,10 @@ namespace Mall.Module.Product ...@@ -3909,7 +3909,10 @@ namespace Mall.Module.Product
x.GuideWorkYears, x.GuideWorkYears,
x.CarId, x.CarId,
x.GuideId, x.GuideId,
x.OrderId x.OrderId,
x.InsuranceMoney,
x.IntegralNumber,
x.IntegralMoney
}), }),
model.IsApplyForCancel, model.IsApplyForCancel,
model.RejectRemark, model.RejectRemark,
......
...@@ -3434,6 +3434,7 @@ namespace Mall.WebApi.Controllers.MallBase ...@@ -3434,6 +3434,7 @@ namespace Mall.WebApi.Controllers.MallBase
x.PlatformSource, x.PlatformSource,
x.TenantId, x.TenantId,
x.MallBaseId, x.MallBaseId,
x.OrderDetailId,
CreateDate = x.CreateDate.HasValue ? x.CreateDate.Value.ToString("yyyy-MM-dd HH:mm:ss") : "" CreateDate = x.CreateDate.HasValue ? x.CreateDate.Value.ToString("yyyy-MM-dd HH:mm:ss") : ""
}); });
return ApiResult.Success("", pagelist); return ApiResult.Success("", pagelist);
......
...@@ -243,7 +243,9 @@ namespace Mall.WebApi.Controllers.User ...@@ -243,7 +243,9 @@ namespace Mall.WebApi.Controllers.User
x.CostFinanceId, x.CostFinanceId,
x.FreightFinanceId, x.FreightFinanceId,
x.Id, x.Id,
x.OrderId x.OrderId,
x.InsuranceCostMoney,
x.InsuranceFinanceId
}); });
return ApiResult.Success("", pagelist); return ApiResult.Success("", pagelist);
} }
...@@ -347,16 +349,16 @@ namespace Mall.WebApi.Controllers.User ...@@ -347,16 +349,16 @@ namespace Mall.WebApi.Controllers.User
{ {
FinanceType = 3, FinanceType = 3,
Final_Price = orderGoodsItem.Final_Price, Final_Price = orderGoodsItem.Final_Price,
Number = 1, Number = orderGoodsItem.Number,
FreightMoney = orderGoodsItem.FreightMoney, FreightMoney = orderGoodsItem.FreightMoney,
GoodsName = orderGoodsItem.GoodsName, GoodsName = orderGoodsItem.GoodsName,
OrderNo = orderGoodsItem.OrderNo, OrderNo = orderGoodsItem.OrderNo,
Id = orderGoodsItem.Id, Id = orderGoodsItem.Id,
CostMoney = orderGoodsItem.CostMoney, CostMoney = orderGoodsItem.CostMoney,
FreightCostMoney = orderGoodsItem.FreightCostMoney, FreightCostMoney = orderGoodsItem.FreightCostMoney,
InsuranceCostMoney = orderGoodsItem.InsuranceCostMoney InsuranceCostMoney = ((orderGoodsItem.InsuranceCostMoney ?? 0) / (orderGoodsItem.Number ?? 1))
}; };
OrderDetailPaid += ((orderGoodsItem.InsuranceCostMoney ?? 0) * (orderGoodsItem.Number ?? 0)); OrderDetailPaid += (orderGoodsItem.InsuranceCostMoney ?? 0);
result.Add(newOrderGoods); result.Add(newOrderGoods);
} }
} }
...@@ -380,7 +382,7 @@ namespace Mall.WebApi.Controllers.User ...@@ -380,7 +382,7 @@ namespace Mall.WebApi.Controllers.User
Unit_Price = orderGoodsItem.CostMoney, Unit_Price = orderGoodsItem.CostMoney,
Number = orderGoodsItem.Number, Number = orderGoodsItem.Number,
OrderDetailPaid = OrderDetailPaid, OrderDetailPaid = OrderDetailPaid,
InsuranceCostMoney = ((orderGoodsItem.InsuranceCostMoney ?? 0) * (orderGoodsItem.Number ?? 0)), InsuranceCostMoney = (orderGoodsItem.InsuranceCostMoney ?? 0),
}; };
record.RecordDetailList.Add(financeRecordDetail); record.RecordDetailList.Add(financeRecordDetail);
...@@ -423,7 +425,7 @@ namespace Mall.WebApi.Controllers.User ...@@ -423,7 +425,7 @@ namespace Mall.WebApi.Controllers.User
} }
else if (demodel.IsSelectAll == 3) else if (demodel.IsSelectAll == 3)
{ {
totalMonry = result.Where(x => x.FinanceType == 2).Sum(x => ((x.InsuranceCostMoney ?? 0) * (x.Number ?? 0))); totalMonry = result.Where(x => x.FinanceType == 3).Sum(x => ((x.InsuranceCostMoney ?? 0) * (x.Number ?? 0)));
} }
var financeObj = new var financeObj = new
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment