Commit ceb3112e authored by 罗超's avatar 罗超

新增校区查询条件

parent 455a4f4b
...@@ -116,7 +116,7 @@ WHERE 1=1 ...@@ -116,7 +116,7 @@ WHERE 1=1
} }
if (query.AccountType > 0) if (query.AccountType > 0)
{ {
where.AppendFormat(" AND A.{0}={1} ", nameof(RB_Account_ViewModel.AccountType), query.AccountType); where.AppendFormat(" AND A.{0}={1} ", nameof(RB_Account_ViewModel.AccountType), (int)query.AccountType);
} }
if (query.Id > 0) if (query.Id > 0)
{ {
......
...@@ -130,7 +130,12 @@ WHERE 1=1 ...@@ -130,7 +130,12 @@ WHERE 1=1
{ {
builder.AppendFormat(" AND s.{0}={1} ", nameof(RB_School_ViewModel.Group_Id), query.Group_Id); builder.AppendFormat(" AND s.{0}={1} ", nameof(RB_School_ViewModel.Group_Id), query.Group_Id);
} }
if ((int)query.Status != -1)
{
builder.AppendFormat(" AND s.{0}={1} ", nameof(RB_School_ViewModel.Status), (int)query.Status);
}
} }
builder.Append(" ORDER BY CreateTime DESC");
return GetPage<RB_School_ViewModel>(pageIndex, pageSize, out rowsCount, builder.ToString(), parameters).ToList(); return GetPage<RB_School_ViewModel>(pageIndex, pageSize, out rowsCount, builder.ToString(), parameters).ToList();
} }
} }
......
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