问题:划缴返回给财政的2607报文中,资金流水号为空
**
处理方式:银行接口规范中,Apex1字段的返回值划缴的资金流水号
查找过程:
**
1、通过2607中的批次号查找核心返回的批次号
2、根据50380014的Ptpch字段,找到划缴的资金流水号
下图是正确返回的例子:
下图是出现错误返回的例子:
解决方案:
**
1、找核心/中台确认一下,此交易返回应答为000000,但备注不是交易成功,且Apex1的返回值为空的原因。
2、跟核心/中台获取正确的资金流水号,以11762为例
3、查询根据资金流水号查询,并核对交易
select count(1) from nontax_transfer_in where ftra_no_m=’真实的资金流水号’;
结果如果是1笔,则如下处理:
delete from nontax_transfer_in i where ftra_no_m=’真实的资金流水号’;
delete from nontax_check_biz where ftra_no_m=’真实的资金流水号’;
delete from nontax_check_acct where ftra_no_m=’真实的资金流水号’;
delete from nontax_check_fund where ftra_no_m=’真实的资金流水号’;
4、通过脚本更新代理非税系统资金流水号字段
update bk_balance_detail_aving t set t.ftra_no_m=’真实的资金流水号’ where t.FBATCH_NO=’划缴批次号’;
update NONTAX_TRANSFER_IN t set t.ftra_no_m=’真实的资金流水号’ where t.FBATCH_NO=’划缴批次号’;
update bk_balance_detail set fresult=9 where ftra_no_m=’真实的资金流水号’;
5、更新通知财政的状态为0,系统将自动发送划缴
update nontax_in_plan_item i set fis_notice=0 where exists(select 1 from nontax_in_plan p where p.fbatch_no=’划缴批次号’ and p.fid=i.fplan_id)
6、次日对账时,将自动与财政对账。