码迷,mamicode.com
首页 > 其他好文 > 详细

渠道号码自动延迟1天

时间:2019-10-05 16:27:46      阅读:92      评论:0      收藏:0      [点我收藏+]

标签:监控   new   代码   过程   mes   大于   提交   数据   nal   

 

     渠道号码自动延迟1天
 
先做这个 以下渠道即将超时还差半个小时超时 的慢充自动延期1天 超时时间大于6天了就不延了 写在监控存储过程中
100095,100099,100101,100104,100041
 
 
  ----begin 20150112 add phoneinterface一些渠道提交的即将慢充号码,自动延期1天,最多延迟3次----------
update dbo. do_phone set state=0 ,MaxEndTime= dateadd(day ,1, MaxEndTime) where maxendtime<dateadd( n,30 ,getdate()) and datediff(day ,OrderTime, MaxEndTime)<6 and state =1099 and isfinal=0 and dotype in(0 ,92, 95) and from_channel_child in( ‘f-100095‘,‘f-100099‘ ,‘f-100101‘, ‘f-100104‘,‘f-100041‘ )
update top (100) dbo.do_phone set MaxEndTime= dateadd(day ,1, MaxEndTime) where maxendtime<dateadd( n,30 ,getdate()) and datediff(day ,OrderTime, MaxEndTime)<6 and state =0 and isfinal=0 and dotype in( 0,92 ,95) and from_channel_child in(‘f-100095‘, ‘f-100099‘,‘f-100101‘ ,‘f-100104‘, ‘f-100041‘)
----end 20150112 add phoneinterface一些渠道提交的即将慢充号码,自动延期1天,最多延迟3次---------
 
 
--do_center数据库的监控存储过程中,添加下面代码
----begin 20150121 add phoneinterface一些代理提交的慢充号码,自动延期1个月----------
update top (100) dbo.do_phone set MaxEndTime= dateadd(month ,1, MaxEndTime) where maxendtime<dateadd( day,7 ,getdate()) and datediff(day ,channel_order_createtime, MaxEndTime)<30 and state=0 and isfinal= 0 and dotype in(0, 92,95 ) and from_channel_child in(‘f-100095‘, ‘f-100099‘,‘f-100101‘ ,‘f-100041‘)
----end 20150121 add phoneinterface一些代理提交的慢充号码,自动延期1个月---------
 
 

渠道号码自动延迟1天

标签:监控   new   代码   过程   mes   大于   提交   数据   nal   

原文地址:https://www.cnblogs.com/ComputerVip/p/11624727.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!