select loginCount, activeCount from ( select count(1) activeCount from PW_DOC_RECORD a left join PW_EMP p on a.USER_ID = p.EMP_ID where EXISTS( select 1 from PW_DOC_RECORD b AND b.DOC_RECORD_CTIME like '%'||?||'%' AND b.DOC_RECORD_TYPE = ? and a.USER_ID = b.USER_ID ) and p.EMP_SEX = ? AND a.DOC_RECORD_CTIME like '%'||?||'%' AND a.DOC_RECORD_TYPE = ? AND a.DOC_TYPE = ? ) active, ( select count(1) loginCount from PW_DOC_RECORD c where 1=1 AND c.DOC_RECORD_CTIME like '%'||?||'%' AND c.DOC_RECORD_TYPE = ? ) login
运行上述sql提示nested exception is java.sql.SQLSyntaxErrorException: ORA-00907: 缺失右括号