- SELECT distinct formId,created,state,id,domainId,statelabel,applicationId,item_number,item_transactor,item_makeDate,item_approveDate,item_receiptUnit,item_payUnit,item_subjectName,item_invoiceType,item_lowerAmount,item_abstract,approverName as item_approver FROM (SELECT * FROM (SELECT d.*,u.name as approverName FROM TLK_UNITREIMBURSE d left join t_user u on u.id=d.lastModifier WHERE 1 = 1 AND (d.ID IN(SELECT DOC_ID FROM AUTH_UNITREIMBURSE AUTH WHERE AUTH.VALUE = '11e2-3b6e-b8600d95-b6e8-93541a28b46e')) OR d.AUTHOR ='11e2-3b6e-b8600d95-b6e8-93541a28b46e') d WHERE 1=1 ) ordtb WHERE DOMAINID ='11e1-98df-fbfa9e0c-adca-15e6adc3fbc5' and statelabel != '完成' and (item_userId='11e2-3b6e-b8600d95-b6e8-93541a28b46e' or statelabel!='草稿')
复制代码 |