Commit 3a334be7 authored by liudong1993's avatar liudong1993

保险人数

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