select b.* from sys_dept a INNER JOIN ctrl_icc_collect b on a.dept_finance_id=b.DRAW_INST_NO where 1=1 and 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}',"")))} |