| | |
| | | ) |
| | | </select> |
| | | |
| | | <!--按区域查询需要呼叫的人员信息--> |
| | | <select id="getCallListByArea" resultType="cn.gistack.sm.intelligentCall.entity.Scene"> |
| | | select |
| | | arb."guid" as waterCode, |
| | | arb."name" as waterName, |
| | | armp."user_name" as username, |
| | | armp."user_phone" as phone, |
| | | armp."user_phone" as userId |
| | | from SJZT_MD."att_res_base" arb |
| | | left join SJZT_MD."att_ad_base" aab on arb."interior_ad_guid" = aab."guid" |
| | | left join SJZT_MD."att_res_manage_person" armp on arb."guid" = armp."res_guid" and armp."type" = 5 |
| | | where 1=1 |
| | | and aab."p_ad_code" in( |
| | | '421181000000', |
| | | '421122000000', |
| | | '420116000000', |
| | | '420902000000' |
| | | ) |
| | | and armp."user_phone" is not null |
| | | and arb."eng_scal"!='中型' and arb."eng_scal"!='大(2)型' and arb."eng_scal"!='大(1)型' |
| | | </select> |
| | | |
| | | </mapper> |