|
@@ -174,8 +174,16 @@
|
|
|
|
|
|
<select id="getBaseList" resultType="com.jeeplus.test.finance.invoice.service.dto.FinanceInvoiceBaseDTO">
|
|
|
select
|
|
|
- <include refid="FIB_Column_List"></include>
|
|
|
+ <include refid="FIB_Column_List"></include>,
|
|
|
+ pa1.id as auditId1,
|
|
|
+ pa2.id as auditId2,
|
|
|
+ pa3.id as auditId3,
|
|
|
+ pa.id as archive_id
|
|
|
from finance_invoice_base fib
|
|
|
+ LEFT JOIN program_audit pa1 ON pa1.program_id = fib.program_id and pa1.audit_level = '1' and pa1.del_flag = '0'
|
|
|
+ LEFT JOIN program_audit pa2 ON pa2.program_id = fib.program_id and pa2.audit_level = '2' and pa2.del_flag = '0'
|
|
|
+ LEFT JOIN program_audit pa3 ON pa3.program_id = fib.program_id and pa3.audit_level = '3' and pa3.del_flag = '0'
|
|
|
+ LEFT JOIN program_archive pa ON pa.program_id = fib.program_id and pa.del_flag = '0'
|
|
|
where fib.del_flag = '0' and fib.invoice_id = ${id}
|
|
|
</select>
|
|
|
|