public IdempotentPo getIdempotentPo ( EasyTransFilterChain filterChain , Map < String , Object > header , EasyTransRequest < ? , ? > reqest ) { BusinessIdentifer businessType = ReflectUtil . getBusinessIdentifer ( reqest . getClass ( ) ) ; Object trxIdObj = header . get ( EasytransConstant . CallHeadKeys . PARENT_TRX_ID_KEY ) ; TransactionId transactionId = ( TransactionId ) trxIdObj ; Integer callSeq = Integer . parseInt ( header . get ( EasytransConstant . CallHeadKeys . CALL_SEQ ) . toString ( ) ) ; JdbcTemplate jdbcTemplate = getJdbcTemplate ( filterChain , reqest ) ; List < IdempotentPo > listQuery = jdbcTemplate . query ( selectSql , new Object [ ] { stringCodecer . findId ( APP_ID , transactionId . getAppId ( ) ) , stringCodecer . findId ( BUSINESS_CODE , transactionId . getBusCode ( ) ) , transactionId . getTrxId ( ) , stringCodecer . findId ( APP_ID , businessType . appId ( ) ) , stringCodecer . findId ( BUSINESS_CODE , businessType . busCode ( ) ) , callSeq , stringCodecer . findId ( APP_ID , appId ) } , beanPropertyRowMapper ) ; if ( listQuery . size ( ) == 1 ) { return listQuery . get ( 0 ) ; } else if ( listQuery . size ( ) == 0 ) { return null ; } else { throw new RuntimeException ( "Unkonw Error!" + listQuery ) ; } }
get execute result from database