Commit 4a0209fc authored by 黄奎's avatar 黄奎
parents f4d966f3 8d1e7915
...@@ -114,5 +114,10 @@ namespace Mall.Model.Entity.TradePavilion ...@@ -114,5 +114,10 @@ namespace Mall.Model.Entity.TradePavilion
/// </summary> /// </summary>
public DateTime UpdateDate { get; set; } public DateTime UpdateDate { get; set; }
/// <summary>
/// 同批排序 升序
/// </summary>
public int Sort { get; set; }
} }
} }
...@@ -44,7 +44,7 @@ namespace Mall.Repository.TradePavilion ...@@ -44,7 +44,7 @@ namespace Mall.Repository.TradePavilion
} }
if (dmodel.ObjectType > 0) 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) if (dmodel.CandidateState > 0)
{ {
......
...@@ -85,7 +85,7 @@ namespace Mall.Repository.TradePavilion ...@@ -85,7 +85,7 @@ namespace Mall.Repository.TradePavilion
string orderBy = " order by w.Id desc"; string orderBy = " order by w.Id desc";
if (dmodel.OrderBy == 1) { 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 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