From 411bbfc6c12a4c06374ec65285692334d1b2eaf8 Mon Sep 17 00:00:00 2001 From: lroyia Date: Sat, 28 Feb 2026 09:06:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8B=E7=BA=A7=E5=B7=B2=E5=8A=9E=E5=BE=85?= =?UTF-8?q?=E5=8A=9E=E6=9F=A5=E8=AF=A2BUG=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../aiccs/business/TSTaskListMapper.xml | 32 +++++++++---------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/src/main/resources/mybatis/mapper/aiccs/business/TSTaskListMapper.xml b/src/main/resources/mybatis/mapper/aiccs/business/TSTaskListMapper.xml index acc10b7..b29bbc5 100644 --- a/src/main/resources/mybatis/mapper/aiccs/business/TSTaskListMapper.xml +++ b/src/main/resources/mybatis/mapper/aiccs/business/TSTaskListMapper.xml @@ -647,23 +647,21 @@ from TSTaskList ta LEFT JOIN TSTwfProcessNode n on ta.WorkflowID = n.processid where ta.BUSSTATUS in ('-1', '0', '1', '3', '5') - - - - - and ( - n.CURRUSERID = #{customParamMap.userId} - or exists(select 1 from CXAICORG.T_USERS tu left join CXAICORG.T_ORGUNITS torg on tu.ORGUNITID = torg.ORGUNITID - where n.CURRUSERID = tu.USERID and torg.ORGNUMBER like #{customParamMap.myOrgNumberLike} - and torg.ORGNUMBER != #{customParamMap.myOrgNumber} - )) - - - and n.CURRUSERID = #{customParamMap.userId} - - - - + + + + and ( + n.CURRUSERID = #{customParamMap.userId} + or exists(select 1 from CXAICORG.T_USERS tu left join CXAICORG.T_ORGUNITS torg on tu.ORGUNITID = torg.ORGUNITID + where n.CURRUSERID = tu.USERID and torg.ORGNUMBER like #{customParamMap.myOrgNumberLike} + and torg.ORGNUMBER != #{customParamMap.myOrgNumber} + )) + + + and n.CURRUSERID = #{customParamMap.userId} + + + ) ) m