<!-- 从支付记录中查找待支付记录信息 -->
<select id="selectUserRequestPayInfo" resultMap="getPayRecordResult">
<![CDATA[
SELECT AUTHNUM,
AMOUNT,
TRANSERIALNUM,
TRANDATE,
OCCDATETIME,
PAYMODE,
PAYTYPE,
CONTRACTPAYNO,
TO_CHAR(LIQDATE, 'YYYYMMDD') AS LIQDATE,
CURTYPE,
NVL(FEEAMT, 0) AS FEEAMT,
USERID,
COMMENT_LINE
FROM icbc_pay_record
WHERE appno = #{appNo}
AND seqno = #{seqNo}
AND signok IS NULL
AND succmark IS NULL
]]>
</select>
-- 某段时间内的支付申请记录
SELECT *
FROM icbc_pay_record t1
WHERE lengthb(t1.AppNo) = 17
AND t1.signok IS NULL
AND t1.succmark IS NULL
AND t1.bankno = pi_BankNo
AND t1.occdatetime >=
to_date(pi_BeginDt || pi_BeginTm, 'yyyymmddhh24miss')
AND t1.occdatetime <=
to_date(pi_EndDt || pi_EndTm, 'yyyymmddhh24miss');