实施 #1143
历史记录
由 彭银生 13979856157 更新于 超过一年 之前
- 状态 从 新建 变更为 已解决
- % 完成 从 0 变更为 100
---倍康差距
select a.* from 网上支付 a where a.交易流水号 not in (select k.trade_no from WITON_PAY k where k.oper_time >=to_date('2022-09-01','yyyy-mm-dd') and k.oper_time <to_date('2022-10-01','yyyy-mm-dd'))
and a.渠道名称 != '互联网医院'
--互联网医院差距
select * from
(
select a.* from 网上支付 a where a.渠道名称 ='互联网医院' and a.交易流水号 not in (select k.trade_no from WITON_PAY k where k.oper_time >=to_date('2022-09-01','yyyy-mm-dd') and k.oper_time <to_date('2022-10-01','yyyy-mm-dd') and length(k.trade_no)=28)
)kk where kk.商户订单号 not in (select k.trade_no from WITON_PAY k where k.oper_time >=to_date('2022-09-01','yyyy-mm-dd') and k.oper_time <to_date('2022-10-01','yyyy-mm-dd') and length(k.trade_no)<28)
---互联网医院his产生流水
select decode(k.source,'WX','微信','ZFB','支付宝','其他') 来源,k.amount,k.card_no 卡号,k.oper_time 收费时间,k.wt_trade_no 流水号1,k.trade_no 流水号2 from WITON_PAY k where k.oper_code ='hlwyy' and k.oper_time >=to_date('2022-09-01','yyyy-mm-dd') and k.oper_time <to_date('2022-10-01','yyyy-mm-dd')