| | |
| | | left join YWXT.blade_role br on locate(br.id,bu.role_id)>0 and br.is_deleted = 0 |
| | | where bu.is_deleted = 0 |
| | | and bd.ad_code in ( |
| | | select "ad_code" from SJZT_MD."att_ad_base" |
| | | start with "ad_code" = (select "interior_ad_guid" from SJZT_MD."att_res_base" where "guid" = #{res_cd} ) |
| | | CONNECT BY PRIOR "p_ad_code" = "ad_code" |
| | | select "ad_code" from SJZT_MD."att_ad_base" |
| | | start with "ad_code" = (select "interior_ad_guid" from SJZT_MD."att_res_base" where "guid" = #{res_cd} ) |
| | | CONNECT BY PRIOR "p_ad_code" = "ad_code" |
| | | ) |
| | | and br.role_name like concat('%',#{roleName},'%') |
| | | and locate(br.role_name,concat('%',#{roleName},'%'))>0 |
| | | and bu.phone is not null and bu.phone!='' |
| | | </select> |
| | | |