select b.* from sys_dept aINNER JOIN ctrl_icc_collect bon a.dept_finance_id=b.DRAW_INST_NOwhere 1=1and b.open_dt='${time}'and a.dept_finance_id='${jg}'${if(a.dept_level= "2",and a.prov_id='${prov}',if(a.dept_level="3",and a.city_id='${city}',if(a.dept_level="4",and a.cnty_id='${cnty}',"")))}