- from u_information_query iq left join (select * from u_task k where k.status!=3 and k.contract_id = #{query.contractId}) t on iq.id = t.form_data_id and t.is_deleted = 0
+ from u_information_query iq left join (select * from u_task k where k.status!=3 and k.contract_id = #{query.contractId} group by
+ form_data_id) t on iq.id = t.form_data_id and t.is_deleted = 0