${IF(databaseId='M',
"
SELECT ${IF(len(orgCode)>0,"VANS.M_CODE","VANS.P_CODE")} FROM VW_AREA_NO_ST VANS
",
SELECT * FROM PB_PRE_PLAN WHERE PRE_YEAR="+year+"
)}
想添加一组动态参数,结果导致参数失效,怎么解决?
${IF()}里面不能再有,${}懂吗?
"SELECT"+ IF(len(orgCode)>0,"VANS.M_CODE","VANS.P_CODE") + "FROM VW_AREA_NO_ST VANS",
"SELECT * FROM PB_PRE_PLAN WHERE PRE_YEAR='"+year+"'")}
${IF(databaseId='M',"SELECT "+ IF(len(orgCode)>0,'VANS.M_CODE','VANS.P_CODE') + " FROM VW_AREA_NO_ST VANS","SELECT * FROM PB_PRE_PLAN WHERE PRE_YEAR='"+year+"'")}