恩,出现这个问题的原因是:
java.sql.SQLException: select * from ( select row_.*, rownum rownum_ from ( SELECT * FROM (SELECT * FROM (select distinct d.item_document_id,d.item_document_title,d.id, d.domainid, d.item_document,d.formid,d.item_draft_department_name,d.item_draft_user_name,d.item_document_type from tlk_document_publish_fo d, OA_DOCUMENT_DEPT r where d.item_document_id = r.document_id and d.item_status='Y' and r.dept_id in('BMBZ131271','BMBZ131268')) ordtb ORDER BY ordtb.document_title ASC, ordtb.ID) table_0 WHERE table_0.DOMAINID ='11e3-251e-5f7ab2bf-afef-634b60f25c71' ) row_ where rownum <= 10) where rownum_ > 0
因为这个视图是用sql写的,有个字段d.item_document_title,但是配置视图列的时候写的document_title,但是点击排序的时候,系统默认加的orderby document_title 而不是item_document_title
所以会报错,这个问题怎么解? |