From 7eb0c0d59c4aa24d56d20340dfd3354e3990b043 Mon Sep 17 00:00:00 2001 From: fei550 <1420031550@qq.com> Date: Wed, 5 Feb 2025 16:10:03 +0800 Subject: [PATCH] =?UTF-8?q?Person=5FPersonsService=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E5=A4=9ADbContext=20=E5=AE=9E=E4=BD=93=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vs/SGGL_SeDin_New/v17/.wsuo | Bin 71680 -> 69632 bytes SGGL/BLL/Person/Person_PersonsService.cs | 7 +++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.vs/SGGL_SeDin_New/v17/.wsuo b/.vs/SGGL_SeDin_New/v17/.wsuo index 5632e341b09721ac2b18a88d64ffd4fbf78ac728..e225f173e71860fe8b3517cc971cfd72436a08af 100644 GIT binary patch delta 1665 zcmc(fOHUI~6vul95YkQy^3W1XLrQr>TA7yNQAH__7J^7y3qlhJZ{!VP8zU}SL0xG= z=WK9iqSU0a#^KvA5C0}LOMd7D9SLm z9oFqwRwT4J5_0OB9rXiKE1r-q5L0{8T)2NX0(#AI3aQhurnxEcf8SNNsbzH2 z=*p7|^g34JI>v1BZhDwwQxMAZK%=fk%4&d3&bAWFVr&vZ*DHY*jMw=Wg@^D&4OVG2S zl9rI;C9UlE2y-Nfj94^ZPwm>Ki=u*eW(UN~CHjV5e@DHq+3)J@>}c+&YwPwmHMMrT z$E3nhF!kv(UihZUS3k=+Z~H9YYldGgz)qnco$-9peuHeVd}XGK7;G7Zlum3Eb%L|U30d8CnCtrp-%J_uQvXA>dC*=V+QlK8)m~9GU=;@( iqP4$rWY{W}i=v}{u-qn8SIX8&zxvFsiM;bbSpEf0et@_D delta 1677 zcmbW1&rcIk5XbwL2FkK6SjC`j4Ag20(pcIBt5RJAq#{CzjS@7bG)RcQ!l5XF+D1*h z_ycwht1&TJ{s56B9ym49izm2wkOL+jOiVm2iSY+IQ+H!c{Dm+1bmmRpzIkuHJDYlB zO-)(HBdq*sx5(LFe|py%f5qGuizTxOM!8XT9+tUzp%4Qc@)ZY6l)Bj-ST5M!;l$8J zBP^n|AtgvDvVu!}hIOG85PJLz{p1Zh#y23aWD}DPW6@T$+Ypa2uSQ#I`1EX9o=@{Y z-dsYz!I_cRv3E6M4^jezHX+c_%14tVZMh+tF$RVTyIgE57 zT}TA!MxqEMpmEgjkD={BE=+V^bYDbg1i6HaB4fy9hs2)Teo*XiK#73_I1)!qjUhz3&vNF-vrU3=FSJveU4?<~mA zv7v-ZZ{`$#*k(2$?F0#b6vD1rP4^2-5wij{TrQ81O4CLBqf&;2SVpPJC?{pblPc($ z=i$01q*Qz0t)~Ly>Ot_2Rg~TCJ{OpJsg=*hYCkldx_=GEFAXWKW@vVVw3Mrvqw{FG zyMz7MZK6-q#M(D(mAg($*@E0z>+^11NKNLmXdeTGRz(ck^6ue*5wYVJmupNhEwTF+ zQ)DYx_h$sEz4?8i`e^!r1t!p!#GjW))5BPl-;@$`e*{`wK1c*^rFV0RoV!1yTv?$C z_n?+DWzrH&5e~9#jY>=IebDq4flar|r63>AqNw8^;W^-|FzbY=Cr(x5nFKQdzzg4Xtcva{vGU diff --git a/SGGL/BLL/Person/Person_PersonsService.cs b/SGGL/BLL/Person/Person_PersonsService.cs index c9533419..c6e28f6d 100644 --- a/SGGL/BLL/Person/Person_PersonsService.cs +++ b/SGGL/BLL/Person/Person_PersonsService.cs @@ -46,6 +46,11 @@ namespace BLL /// public static IEnumerable getListData(string unitId, string departId, string projetcId, string name, string idCard, string isPost, string personType, string account, string[] workPostIds, Grid Grid1) { + + var db1 = Funs.DB; + var getDataLists = from x in db1.Person_Persons + where x.PersonId != Const.sysglyId && x.PersonId != Const.hfnbdId + select x; IQueryable getDataList = getDataLists.OrderBy(x => x.UnitId).ThenBy(x => x.DepartId); if (!string.IsNullOrEmpty(unitId) && unitId != Const._Null) { @@ -55,8 +60,6 @@ namespace BLL { getDataList = getDataList.Where(e => e.DepartId == departId); } - - var db1 = Funs.DB; if (!string.IsNullOrEmpty(projetcId) && projetcId != Const._Null) { var idLists = (from x in db1.SitePerson_PersonItem