From a113dc2b4ba382dfed9927d438539365c5a8ae35 Mon Sep 17 00:00:00 2001 From: gaofei1985 <181547018@qq.com> Date: Thu, 2 Nov 2023 10:24:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../HSSE/SecuritySystem/SafetyOrganization.aspx.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SGGL/FineUIPro.Web/HSSE/SecuritySystem/SafetyOrganization.aspx.cs b/SGGL/FineUIPro.Web/HSSE/SecuritySystem/SafetyOrganization.aspx.cs index 992291c7..465f1c0e 100644 --- a/SGGL/FineUIPro.Web/HSSE/SecuritySystem/SafetyOrganization.aspx.cs +++ b/SGGL/FineUIPro.Web/HSSE/SecuritySystem/SafetyOrganization.aspx.cs @@ -119,7 +119,7 @@ namespace FineUIPro.Web.HSSE.SecuritySystem string strSql = @"SELECT p.PersonId,p.CardNo,p.PersonName,p.ProjectId,p.UnitId,w.WorkPostName,p.Telephone,w.Remark" + @" FROM SitePerson_Person AS P" + @" LEFT JOIN Base_WorkPost AS W ON P.WorkPostId =W.WorkPostId" - + @" WHERE w.PostType='1' AND p.ProjectId= '" + this.ProjectId + "' AND p.UnitId='" + unitIdSelect + "'"; + + @" WHERE w.PostType='1' AND p.ProjectId= '" + this.ProjectId + "' AND p.UnitId='" + unitIdSelect + "' and P.IsUsed=1 and P.OutTime is null"; List listStr = new List(); SqlParameter[] parameter = listStr.ToArray(); DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);