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