update InvoiceItem set tousseDefinitionId=(select max(ti.tousseDefinition_id) from TousseInstance ti where ti.invoice_id=InvoiceItem.invoice_id and ti.tousseName=InvoiceItem.tousseName)
where diposable='否' and tousseDefinitionId is null;