This commit is contained in:
2026-04-08 14:03:39 +08:00
parent 7ecbc2ebc0
commit 4a1b636ce0
353 changed files with 1378 additions and 500 deletions
+4 -3
View File
@@ -12,7 +12,7 @@ namespace BLL
/// </summary>
public static class PostService
{
public static Model.CNPCDB db = Funs.DB;
/// <summary>
/// 记录数
@@ -31,8 +31,9 @@ namespace BLL
/// <param name="maximumRows"></param>
/// <returns></returns>
public static IEnumerable GetListData(string postName, int startRowIndex, int maximumRows)
{
IQueryable<Model.Base_Post> q = from x in db.Base_Post orderby x.PostName select x;
{
Model.CNPCDB db = Funs.DB;
IQueryable<Model.Base_Post> q = from x in db.Base_Post orderby x.PostName select x;
if (!string.IsNullOrEmpty(postName))
{
q = q.Where(e => e.PostName.Contains(postName));