Commit a8336e90 authored by tangwei's avatar tangwei

修改电站列表

parent 5595e924
......@@ -3,11 +3,8 @@
<mapper namespace="com.yeejoin.amos.boot.module.hygf.api.mapper.PowerStationMapper">
<select id="queryPage" resultType="com.yeejoin.amos.boot.module.hygf.api.dto.PowerStationDto">
select * from (select
hygf_power_station.*,
b.initiate_status,
b.contract_lock_id
from hygf_power_station LEFT JOIN ( select peasant_household_id,initiate_status, contract_lock_id from hygf_household_contract where hygf_household_contract.status !='已作废'
) b on b.peasant_household_id=hygf_power_station.peasant_household_id
hygf_power_station.*
from hygf_power_station
where hygf_power_station.is_delete=0
<if test="powerStationCode!=null and powerStationCode!=''">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment