Commit 8d1e7915 authored by liudong1993's avatar liudong1993

1

parent 9611d7f9
......@@ -114,5 +114,10 @@ namespace Mall.Model.Entity.TradePavilion
/// </summary>
public DateTime UpdateDate { get; set; }
/// <summary>
/// 同批排序 升序
/// </summary>
public int Sort { get; set; }
}
}
......@@ -44,7 +44,7 @@ namespace Mall.Repository.TradePavilion
}
if (dmodel.ObjectType > 0)
{
where += $@" and w.{nameof(RB_FirstShop_ListEnroll_Extend.ObjectType)}={dmodel.ObjectType}";
where += $@" and w.{nameof(RB_FirstShop_ListEnroll_Extend.ObjectType)}={(int)dmodel.ObjectType}";
}
if (dmodel.CandidateState > 0)
{
......
......@@ -85,7 +85,7 @@ namespace Mall.Repository.TradePavilion
string orderBy = " order by w.Id desc";
if (dmodel.OrderBy == 1) {
orderBy = " order by w.EndDate desc";//根据报名截止日期
orderBy = " order by w.EndDate desc,w.Sort asc";//根据报名截止日期
}
string sql = $@"select w.* from RB_FirstShop_List w
......
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