{# 定义宏以便多次调用 #} {% macro customer_tracking_list(houseId) %} {% set list = function('CustomerTrackingDao::search', houseId) %} 房源跟进 {% if list %}