這下面的查詢而在SQL developoer執行返回一個單一的結果,但returing空列表而調用彈簧JDBC - getJdbcTemplate()的queryForList
List failedTxnList = getJdbcTemplate().queryForList(query, params);
和PARAMS的值是[IM1691,VSIB01, 1/4/2017,25/4/2017]。請幫我看看這裏的問題。
select a.echeque_no,a.oid,a.echeque_date,d.name im_name,c.name vendor_name,a.corp_ref_no,b.hundi_date,a.echeque_amount,b.reversal_date,
a.status_description
from sbicorp_echeque_master a, sbi_gvf_vendor_txn_history b,sbi_gvf_vendor_master c, sbi_gvf_im_master d
where a.debit_status = 'ERR.'
and LTRIM(RTRIM(a.corporate_id))= 'IM1691'
and LTRIM(RTRIM(a.businessline_id)) = 'VSIB01'
and trunc(a.echeque_date) BETWEEN TO_DATE ('1/4/2017', 'dd/mm/yyyy') AND TO_DATE ('25/4/2017', 'dd/mm/yyyy')
and a.corporate_id=d.im_code and a.businessline_id = c.vendor_code
and b.txn_type= 'Original Debit'
and a.echeque_no = b.reference_no
and substr(a.echeque_no,0,2) in ('CE','CR','CN','CZ')
order by echeque_date desc -- CE01573281
這是我查詢的結果: –
抱歉,無法發佈的結果,但結果有10列,一行 –
ECHEQUE_NO OID ECHEQUE_DATE IM_NAME VENDOR_NAME CORP_REF_NO HUNDI_DATE ECHEQUE_AMOUNT REVERSAL_DATE STATUS_DESCRIPTION –