From 6b6ae81177fbd5eed54d6e0bb1e8bddf3b5ed342 Mon Sep 17 00:00:00 2001 From: Jodeve <2253156+Jodeve@user.noreply.gitee.com> Date: Mon, 22 Apr 2024 15:05:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E5=B1=9E=E4=BA=8E=E6=8C=87=E5=AE=9A=E8=A7=92=E8=89=B2=E7=9A=84?= =?UTF-8?q?=E7=BB=84=E7=BB=87=E5=8D=95=E5=85=83=20=E5=87=BD=E6=95=B0?= =?UTF-8?q?=E5=9C=A8=20personMember=20=E5=88=86=E6=94=AF=E6=97=B6=E7=94=B1?= =?UTF-8?q?=E4=BA=8E=20SQL=20=E5=88=97=E5=88=AB=E5=90=8D=E6=9C=AA=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E4=BB=A5=E5=8F=8A=20SQL=20=E6=9D=A1=E4=BB=B6=E6=8B=BC?= =?UTF-8?q?=E6=8E=A5=E5=85=B3=E9=94=AE=E5=AD=97=E7=BC=BA=E5=A4=B1=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/flow/exporgexecutor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/flow/exporgexecutor.py b/app/flow/exporgexecutor.py index 95cb432..eb5db62 100644 --- a/app/flow/exporgexecutor.py +++ b/app/flow/exporgexecutor.py @@ -88,7 +88,7 @@ def get_org_unit_has_role_by_code(roleCode, inOrg, personMember): orgs0.append(o.SORGID) orgUnit = ','.join(orgs) if personMember: - sql1 = ("select SID from sa_oporg o where o.sfid like '" + org.sfid + "%' EXISTS(select SFID from sa_oporg " + sql1 = ("select SID as SORGID from sa_oporg o where o.sfid like '" + org.sfid + "%' and EXISTS(select SFID from sa_oporg " + " o1 where SID in (" + orgUnit + ") and o.SFID like concat(o1.SFID,'%')) and SORGKINDID = 'psm'") rs1 = db.session.execute(sql1) -- Gitee