其实我正在使用.jrxml
文件用于 Web 应用程序,但现在我需要在 Swing 中使用相同的文件。
可能吗?我可以将.jrxml
文件用于 Swing 应用程序吗?
JRXML EG
SELECT R.FUND_TRANSFER_TRACE_ID AS Stan_ID, FS.SERVICE_NAME, R.MOBILE_NUMBER,CASE WHEN C.MIDDLE_NAME IS NOT NULL
THEN (C.FIRST_NAME +' '+C.MIDDLE_NAME+' '+C.LAST_NAME) ELSE (C.FIRST_NAME +' '+C.LAST_NAME) END AS CUSTOMER_NAME,
R.FROM_ACCOUNT, R.TO_ACCOUNT, R.AMOUNT, R.SERVICE_ATTRIBUTE, R.RECORDED_DATE AS TRANSACTION_DATE,FTD.FONEPAY_TRACE_ID,
FTC.RESPONSE_CODE AS CANCELATION_RESPONSE_CODE, FTC.RESPONSE_MESSAGE AS CANCELATION_RESPONSE_DESCRIPTION,FTC.RECORDED_DATE AS CANCELED_DATE,
FTC.REMARKS
FROM FONEPAY_TRANSACTION_CANCELLATION FTC
JOIN FONEPAY_TRANSACTION_DETAILS FTD ON(FTD.ID=FTC.FONEPAY_TRANSACTION_DETAILS_ID)
JOIN REQUEST R on(FTD.REQUEST_ID=R.ID)
LEFT JOIN CUSTOMER C ON(C.ID=R.CUSTOMER_ID)
JOIN FONEPAY_SERVICE_DETAIL FSD ON(R.FONEPAY_ID=FSD.ID)
JOIN FONEPAY_SERVICE FS ON(FSD.FONEPAY_SERVICE_ID=FS.ID)
WHERE
CONVERT(VARCHAR(10),R.RECORDED_DATE,121)
BETWEEN CONVERT(VARCHAR(10),$P{startDate},121) and CONVERT(VARCHAR(10),$P{endDate},121)
and $P!{queryStr} AND FTD.FONEPAY_TRANSACTION_STATUS='REVERSAL_SUCCESS'
ORDER BY R.RECORDED_DATE DESC