From eaa0147cb1ca2717383fb2f1d0fdb6a5621012c4 Mon Sep 17 00:00:00 2001
From: gaofei1985 <181547018@qq.com>
Date: Thu, 2 Apr 2026 10:15:56 +0800
Subject: [PATCH] 1
---
SGGL/BLL/Person/Person_DutyService.cs | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/SGGL/BLL/Person/Person_DutyService.cs b/SGGL/BLL/Person/Person_DutyService.cs
index 63850fb3..5d8c918b 100644
--- a/SGGL/BLL/Person/Person_DutyService.cs
+++ b/SGGL/BLL/Person/Person_DutyService.cs
@@ -30,6 +30,9 @@ namespace BLL
///
public static IEnumerable getListData(string personId, Grid Grid1)
{
+ Model.SGGLDB db = Funs.DB;
+ var getDataLists = from x in db.Person_Duty
+ select x;
IQueryable getDataList = getDataLists.Where(x => x.DutyPersonId == personId);
count = getDataList.Count();
if (count == 0)
@@ -46,7 +49,7 @@ namespace BLL
x.CompilePersonId,
x.CompileTime,
x.WorkPostId,
- WorkPostName = Funs.DB.Base_WorkPost.First(U => U.WorkPostId == x.WorkPostId).WorkPostName,
+ WorkPostName = db.Base_WorkPost.First(U => U.WorkPostId == x.WorkPostId).WorkPostName,
x.ApprovePersonId,
x.ApproveTime,
x.State,