from hygf_power_station LEFT JOIN ( select peasant_household_id,initiate_status, contract_lock_id from hygf_household_contract where hygf_household_contract.status !='已作废'
...
...
@@ -21,7 +22,10 @@
and hygf_power_station.owners_name like concat(concat("%",#{ownersName}),"%")
</if>
<iftest="serviceAgent!=null and serviceAgent!=''">
and hygf_power_station.service_agent=#{serviceAgent}
and hygf_power_station.service_agent like concat(concat("%",#{serviceAgent}),"%")
</if>
<iftest="regionalCompaniesName!=null and regionalCompaniesName!=''">
and hygf_peasant_household.regional_companies_name like concat(concat("%",#{regionalCompaniesName}),"%")