|
|
@ -5,7 +5,7 @@ |
|
|
|
|
|
|
|
<select id="customerAgency" resultType="com.elink.esua.epdc.dto.screen.result.ScreenCustomerAgencyDTO"> |
|
|
|
SELECT sd.`id` AS agencyId, |
|
|
|
sd.`name` AS agencyName, |
|
|
|
if(sd.`name` = '锦水街道办事处','锦水街道',sd.`name`) AS agencyName, |
|
|
|
if(sd.type_key='street_party',0,sd.`pid` )pid, |
|
|
|
if(sd.type_key='street_party',0,sd.`pids` )pids, |
|
|
|
CASE WHEN sd2.`name` IS NULL |
|
|
|