iPaylinks 推送列表的发送状态显示;

feature/pay
lyt 7 years ago
parent 5f4c41fe30
commit 91d3cb2934

@ -196,9 +196,9 @@ class Note_model extends CI_Model {
$sql = "SELECT
-- gai.GAI_SN,
-- gaib.GAI_SN,
-- COLI.COLI_ID,
-- COLI.COLI_ID,IPL_payType='pay' and
case
when IPL_payType='pay' and (ISNULL(gaib.GAI_SN, 0)+ISNULL(gai.GAI_SN, 0))>0 then 9999
when (ISNULL(gaib.GAI_SN, 0)+ISNULL(gai.GAI_SN, 0))>0 then 9999
when IPL_payType='pay' and coli.COLI_ID is not null then 99999
when IPL_payType<>'pay' then 10000
when IPL_sent='closeRecord' then 10000
@ -207,8 +207,8 @@ class Note_model extends CI_Model {
ipl.*
from InfoManager.dbo.IPayLinksLog ipl
left join Tourmanager.dbo.BIZ_ConfirmLineInfo coli on coli.COLI_ID=ipl.IPL_orderId and coli.COLI_Department=16
left join Tourmanager.dbo.BIZ_GroupAccountInfo gaib on ipl.IPL_dealId=gaib.GAI_AccreditNo and gaib.DeleteFlag=0 and ipl.IPL_payType='pay'
left join Tourmanager.dbo.GroupAccountInfo gai on gai.GAI_AccreditNo=ipl.IPL_dealId and gai.DeleteFlag=0 and ipl.IPL_payType='pay'
left join Tourmanager.dbo.BIZ_GroupAccountInfo gaib on ipl.IPL_dealId=gaib.GAI_AccreditNo and gaib.DeleteFlag=0 --and ipl.IPL_payType='pay'
left join Tourmanager.dbo.GroupAccountInfo gai on gai.GAI_AccreditNo=ipl.IPL_dealId and gai.DeleteFlag=0 --and ipl.IPL_payType='pay'
where 1=1
and ( (ipl.IPL_stateCode=2 and ipl.IPL_payType<>'pay') or (ipl.IPL_resultCode='0000' and ipl.IPL_payType='pay') )
$this->send

Loading…
Cancel
Save