1. 测试一笔正常的医保支付交易,保存交易,并获取对应的金融流水号
第一步:获取订单号,医院端测试获取;
第二步:获取金融流水号,通过用订单号获取金融流水号,可以通过捞supergw日志的方法;
supergw-message.log中<function>alipay.medical.order.pay</function>接口"客户端发送报文"里面的<out_order_no></out_order_no>即为金融流水号;
日志语句:pgm -b -p 20 supergwserver 'grep 订单号 logs/supergw/*.log --color=always'
pgm -b -p 20 supergwpciserver 'grep 订单号 logs/supergw/*.log --color=always'
pgm -b -p 20 supergwsmallserver 'grep 订单号 logs/supergw/*.log --color=always'
pgm -b -p 20 supergwfrontserver 'grep 订单号 logs/supergw/*.log --color=always'
第三步:登录idb,进入库表fin_influx_transaction_00_23_03(其中00(金融号第4位)_23(金融号最后2位)_03(月份-1)),查到这笔金融流水记录
SQL语句:SELECT * FROM fin_influx_transaction_00_23_03 WHERE SETTLE_SERIAL_NO='20170420000002360423'
第四步:更新状态EXCHANGE_STATUS和SETTLE_STATUS的值,将值置为UN(SU表示成功,UN表示异常);
SQL语句:UPDATE fin_influx_transaction_00_23_03 SET EXCHANGE_STATUS = 'UN', SETTLE_STATUS = 'UN' WHERE SETTLE_SERIAL_NO='20170420000002360423'
第五步:触发差异补充,进入DRM差错预约平台 (如果地址进不去:到DRM-finslip-金融网络差错平台功能控制-差错预约目录下),进行推送;
推送值:slipBizType=recoveryIn,slipSubBizType=JXHRSS89_C01B32S65T01(机构交易交换代码),ids=20170420000002360423,startDate=,endDate=,execDate=
第六步:进入库表fin_influx_transaction_00_23_03,观察该笔金融流水记录中的状态EXCHANGE_STATUS和SETTLE_STATUS,值是否已经被勾兑回SU;
SQL语句:SELECT * FROM fin_influx_transaction_00_23_03 WHERE SETTLE_SERIAL_NO='20170420000002360423'
第一步:获取退款订单号,医院端测试获取;
第二步:获取金融流水号, 通过用退款订单号获取金融流水号,可以通过捞supergw日志的方法;
supergw-message.log 中<function>alipay.medical.order.cancel</function>接口"客户端发送报 文"里面的<out_order_no></out_order_no>即为金融流水号;
日志语句:pgm -b -p 20 supergwserver 'grep 订单号 logs/supergw/*.log --color=always'
pgm -b -p 20 supergwpciserver 'grep 订单号 logs/supergw/*.log --color=always'
pgm -b -p 20 supergwsmallserver 'grep 订单号 logs/supergw/*.log --color=always'
pgm -b -p 20 supergwfrontserver 'grep 订单号 logs/supergw/*.log --color=always'
第三步:登录idb,进入库表fin_outflux_transaction_01_70_03(其中01(金融号第4位)_70(金融号最后2位)_03(月份-1)),查到这笔金融流水记录
SQL语句:SELECT * FROM fin_outflux_transaction_01_70_03 WHERE SETTLE_SERIAL_NO='20170426000002981070'
第四步:更新状态EXCHANGE_STATUS和SETTLE_STATUS的值,将值置为UN(SU表示成功,UN表示异常);
SQL语句:UPDATE fin_outflux_transaction_01_70_03 SET EXCHANGE_STATUS = 'UN', SETTLE_STATUS = 'UN' WHERE SETTLE_SERIAL_NO='20170426000002981070'
第五步:触发差异补充,进入DRM差错预约平台 (如果地址进不去:到DRM-finslip-金融网络差错平台功能控制-差错预约目录下),进行推送;
推送值:slipBizType=recoveryOut,slipSubBizType=JXHRSS89_C02B32S65T04(机构交易交换代码),ids=20170426000002981070,startDate=,endDate=,execDate=
第六步:进入库表fin_outflux_transaction_01_70_03,观察该笔金融流水记录中的状态EXCHANGE_STATUS和SETTLE_STATUS,值是否已经被勾兑回SU;
SQL语句:SELECT * FROM fin_outflux_transaction_01_70_03 WHERE SETTLE_SERIAL_NO='20170426000002981070'