Commit 765f23a0 authored by 吴春's avatar 吴春

提交代码

parent 73d2c59d
......@@ -936,42 +936,42 @@ WHERE {where} group by g.Id order by g.CreateDate desc";
where += $@" and g.{nameof(RB_Goods_Extend.SupplierId)}={dmodel.SupplierId}";
}
string orderBy = " g.Sort desc";
if (dmodel.OrderBy == 1)
{
//价格升序
orderBy = " g.Sort asc";
}
else if (dmodel.OrderBy == 2)
{
//价格降序
orderBy = " g.Sort desc";
}
else if (dmodel.OrderBy == 3)
//if (dmodel.OrderBy == 1)
//{
// //价格升序
// orderBy = " g.Sort asc";
//}
//else if (dmodel.OrderBy == 2)
//{
// //价格降序
// orderBy = " g.Sort desc";
//}
if (dmodel.OrderBy == 1)
{
//价格升序
orderBy = " g.SellingPrice asc";
}
else if (dmodel.OrderBy == 4)
else if (dmodel.OrderBy == 2)
{
//价格降序
orderBy = " g.SellingPrice desc";
}
else if (dmodel.OrderBy == 5)
else if (dmodel.OrderBy == 3)
{
//评分升序
orderBy = " e.Score asc";
}
else if (dmodel.OrderBy == 6)
else if (dmodel.OrderBy == 4)
{
//评分降序
orderBy = " e.Score desc";
}
else if (dmodel.OrderBy == 7)
else if (dmodel.OrderBy == 5)
{
//最新升序
orderBy = " g.CreateDate asc";
}
else if (dmodel.OrderBy == 8)
else if (dmodel.OrderBy == 6)
{
//最新降序
orderBy = " g.CreateDate desc";
......
......@@ -142,7 +142,7 @@ namespace Mall.WebApi.Controllers.Product
else
{
TimeSpan sp = tempEndTime.Subtract(tempStartTime);
demodel.UseDay = sp.Days;
demodel.UseDay = sp.Days + 1;
}
......
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