Commit 3a334be7 authored by liudong1993's avatar liudong1993

保险人数

parent 1ac4fe6a
......@@ -2421,10 +2421,11 @@ namespace Mall.Module.Product
string CarColorName = carcolorlist.Where(x => x.ID == gmodel.CarColorId).FirstOrDefault()?.ColorName ?? "";
decimal CarScore = carModel?.Score ?? 5;
string CarModel = carModel?.CarType ?? "";
string CarClass = carModel?.CarClass.GetEnumName() ?? "";
//保险
decimal qInsuranceMoney = guidebaseModel?.SalePrice ?? 0;
decimal qInsuranceCostMoney = guidebaseModel?.CostPrice ?? 0;
decimal qInsuranceMoney = (guidebaseModel?.SalePrice ?? 0) * (item.Number ?? 0);
decimal qInsuranceCostMoney = (guidebaseModel?.CostPrice ?? 0) * (item.Number ?? 0);
InsuranceMoney += qInsuranceMoney;
#endregion
goods_list.Add(new
......@@ -2488,6 +2489,7 @@ namespace Mall.Module.Product
car_score = CarScore,
carcolor_name = CarColorName,
car_model = CarModel,
car_class = CarClass,
carcolor_id = gmodel.CarColorId,
car_number = gmodel.CarNumber,
car_buyyear = gmodel.CarBuyYear,
......
......@@ -4334,8 +4334,8 @@ namespace Mall.Module.Product
}
item.FreightMoney = 0;
item.InsuranceMoney = guidebaseModel?.SalePrice ?? 0;
item.InsuranceCostMoney = guidebaseModel?.CostPrice ?? 0;
item.InsuranceMoney = (guidebaseModel?.SalePrice ?? 0) * (item.Number ?? 0);
item.InsuranceCostMoney = (guidebaseModel?.CostPrice ?? 0) * (item.Number ?? 0);
InsuranceMoney += (item.InsuranceMoney ?? 0);
item.CommentGiveIntegral = 0;
......
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