Commit 55468ea3 authored by liudong1993's avatar liudong1993

首页评分 + 取消课程订单

parent 3e70ccea
......@@ -830,7 +830,7 @@ namespace Mall.Model.Extend.MarketingCenter
public int goodsLength { get; set; }
/// <summary>
/// 列表样式[-1-列表模式,0-左右滑动,1-一行一个,2-一行两个3-一行三个]
/// 列表样式[-1-列表模式,0-左右滑动,1-一行一个,2-一行两个3-一行三个 4-教育模式]
/// </summary>
public int listStyle { get; set; }
......@@ -889,6 +889,16 @@ namespace Mall.Model.Extend.MarketingCenter
/// </summary>
public string buttonColor { get; set; }
/// <summary>
/// 显示评分 ld 2020-10-13
/// </summary>
public bool showScore { get; set; }
/// <summary>
/// 评分颜色
/// </summary>
public string scoreColor { get; set; }
/// <summary>
/// 显示商品角标
/// </summary>
......@@ -981,6 +991,11 @@ namespace Mall.Model.Extend.MarketingCenter
/// 【原价】前端使用
/// </summary>
public decimal OriginalPrice { get; set; }
/// <summary>
/// 课程评分 2020-10-13 ld
/// </summary>
public decimal courseScore { get; set; }
}
/// <summary>
......
......@@ -6010,7 +6010,7 @@ namespace Mall.Module.Product
}, trans);
}
}
if (IsSDGoods == false)
if (IsSDGoods == false && demodel.OrderClassify != 2)
{
//更新商品数量
Dictionary<string, object> keyValues = new Dictionary<string, object>() {
......@@ -6378,6 +6378,8 @@ namespace Mall.Module.Product
}
}
else
{
if (omodel.OrderClassify != 2)
{
//更新商品表库存
Dictionary<string, object> keyValues1 = new Dictionary<string, object>() {
......@@ -6392,6 +6394,7 @@ namespace Mall.Module.Product
};
goodsRepository.Update(keyValues1, wheres1, trans);
}
}
goods_LogRepository.Insert(new RB_Goods_Log()
{
Id = 0,
......@@ -9715,6 +9718,8 @@ namespace Mall.Module.Product
}
}
else
{
if (omodel.OrderClassify != 2)
{
//更新商品表库存
Dictionary<string, object> keyValues1 = new Dictionary<string, object>() {
......@@ -9729,6 +9734,7 @@ namespace Mall.Module.Product
};
goodsRepository.Update(keyValues1, wheres1, trans);
}
}
goods_LogRepository.Insert(new RB_Goods_Log()
{
Id = 0,
......
......@@ -217,6 +217,7 @@ namespace Mall.WebApi.Controllers
lastItem.price = Math.Round((tempGood?.SellingPrice ?? 0), 2);
lastItem.picUrl = tempGood?.CoverImage != null ? Common.Config.GetFileUrl(tempGood.CoverImage) : "";
lastItem.OriginalPrice = Math.Round((tempGood?.OriginalPrice ?? 0), 2);
lastItem.courseScore = (tempGood.CourseScore ?? 0);
newGoodsList.Add(lastItem);
}
}
......@@ -245,7 +246,8 @@ namespace Mall.WebApi.Controllers
price = Math.Round((gItem?.SellingPrice ?? 0), 2),
name = gItem.Name,
picUrl = Common.Config.GetFileUrl(gItem.CoverImage),
OriginalPrice = Math.Round((gItem?.OriginalPrice ?? 0), 2)
OriginalPrice = Math.Round((gItem?.OriginalPrice ?? 0), 2),
courseScore = gItem.CourseScore ?? 0
});
}
}
......@@ -369,7 +371,8 @@ namespace Mall.WebApi.Controllers
price = Math.Round((gItem?.SellingPrice ?? 0), 2),
name = gItem.Name,
picUrl = Common.Config.GetFileUrl(gItem.CoverImage),
OriginalPrice = Math.Round((gItem?.OriginalPrice ?? 0), 2)
OriginalPrice = Math.Round((gItem?.OriginalPrice ?? 0), 2),
courseScore = gItem.CourseScore ?? 0
});
}
}
......@@ -492,6 +495,7 @@ namespace Mall.WebApi.Controllers
childItem.price = Math.Round((tempGood?.SellingPrice ?? 0), 2);
childItem.picUrl = tempGood?.CoverImage != null ? Common.Config.GetFileUrl(tempGood.CoverImage) : "";
childItem.OriginalPrice = Math.Round((tempGood?.OriginalPrice ?? 0), 2);
childItem.courseScore = (tempGood.CourseScore ?? 0);
newGoodsList.Add(childItem);
}
}
......@@ -1138,6 +1142,8 @@ namespace Mall.WebApi.Controllers
buyBtnStyle = 1,
buyBtnText = "购买",
buttonColor = "#ff4544",
showScore = false,
scoreColor = "#FFC86E",
showGoodsTag = false,
customizeGoodsTag = false,
goodsTagPicUrl = "",
......
......@@ -601,6 +601,8 @@ and DATE_FORMAT(b.PaymentTime,'%y-%m-%d')<DATE_FORMAT('{endDate}','%y-%m-%d') A
}
}
else
{
if (qitem.OrderClassify != 2)
{
//更新商品表库存
Dictionary<string, object> keyValues1 = new Dictionary<string, object>() {
......@@ -615,6 +617,7 @@ and DATE_FORMAT(b.PaymentTime,'%y-%m-%d')<DATE_FORMAT('{endDate}','%y-%m-%d') A
};
goodsRepository.Update(keyValues1, wheres1);
}
}
goods_LogRepository.Insert(new Mall.Model.Entity.Product.RB_Goods_Log()
{
Id = 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