SELECT * FROM MMZW.READ_DOCUMENT readdocume0_, MMZW.OADOCUMENT oadocument1_ WHERE readdocume0_.DOCUMENT_ID=oadocument1_.ID AND readdocume0_.ADD_USER_ID='9318898d39c4abb10139d8394db00037' AND ( readdocume0_.FLOW_ID LIKE '%11%' -- 这个没有执行 OR oadocument1_.FLOWID LIKE '%11%' )
[解决办法] 原来是这样呀,你一个表关联了另一个表,比如如这样 有atable,btable两张表,b表里有a表的的id这样写就ok了呀 select a from atalbe a ,btable b where b.atableId=a.id and a.id=?1 就行了呀 [解决办法]
SELECT * FROM MMZW.READ_DOCUMENT readdocume0_, MMZW.OADOCUMENT oadocument1_ WHERE readdocume0_.DOCUMENT_ID=oadocument1_.ID AND readdocume0_.ADD_USER_ID='9318898d39c4abb10139d8394db00037'