andt1.bureau_idnotin(selectbureau_idfromt_base_dakawhereterm_id=#para(term_id) and b_use=1) order by t1.school_type_id,t1.area_id
#end
-- 已打卡 -- 未打卡
#sql("listDaKa")
selectt1.*,t2.org_nameasbureau_namefromt_base_dakaast1innerjoint_base_organizationast2ont1.bureau_id=t2.org_idwheret1.term_id=#para(term_id) and t1.b_use=1
#if(city_id)
andt2.city_id=#para(city_id)
#end
#if(area_id)
andt2.area_id=#para(area_id)
#end
in(selectbureau_idfromt_base_dakawhereterm_id=#para(term_id) and b_use=1) order by t1.school_type_id,t1.area_id