|
@@ -3,7 +3,7 @@
|
|
|
<mapper namespace="com.zjugis.business.mapper.ContractMessageMapper">
|
|
|
|
|
|
<select id="page" resultType="com.zjugis.business.bean.response.ContractMessageResponse">
|
|
|
- SELECT cm.*,T2.ID as contractInvoiceId FROM CONTRACT_MESSAGE cm
|
|
|
+ SELECT cm.*,T2.ID as contractInvoiceId,T2.INSTANCE_ID as invoiceInstanceId FROM CONTRACT_MESSAGE cm
|
|
|
LEFT JOIN CONTRACT_RETURN_MONEY T1 on T1.ID = cm.BUSINESS_ID and cm.MESSAGE_TYPE = 2
|
|
|
LEFT JOIN CONTRACT_INVOICE_ID T2 on T2.ID = T1.CONTRACT_INVOICE_ID
|
|
|
<if test="params != null and params.deptId != null and params.deptId != ''">
|