sql.rar
发一下完整sql,RECALL_TYPE_ID这个a表里没有,你得取出来啊
盲猜没指定表名(PS:多张数据表有这个字段),或者该字段是别名
---------
全是错误。你自己慢慢参数改吧
TIME_DATE = TRUNC(DATE '${P_START}')
AND TIME_DATE = TRUNC(DATE '${P_END}')
${if(len(P_CS_ID)== 0,"and a.CS_ID in ('" + P_CS_ID + "')","")}
${if(len(P_CALLOUT_TYPE)== 0,"and a.OUTBOUND_TYPE_ID in ( '"+ P_CALLOUT_TYPE + "')","")}