Commit 1089ce94 authored by 黄奎's avatar 黄奎

新增查询

parent 25b67d43
......@@ -48,6 +48,10 @@ WHERE 1=1
builder.AppendFormat(" AND A.{0} LIKE @PositionName ", nameof(RB_Web_Recruitment_ViewModel.PositionName));
parameters.Add("PositionName", "%" + query.PositionName.Trim() + "%");
}
if (query.TypeId > 0)
{
builder.AppendFormat(@" AND A.{0}={1} ", nameof(RB_Web_Recruitment_ViewModel.TypeId), query.TypeId);
}
}
builder.AppendFormat(" ORDER BY A.{0} DESC ", nameof(RB_Web_Recruitment_ViewModel.Id));
return GetPage<RB_Web_Recruitment_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