• 慢充号码渠道号码批量延期


                                                                                       慢充号码渠道号码批量延期
     
     
     
     
     
    --100099,100095,,100101,移动所有号码都延迟2天到账。
    --100041,联通和电信所有号码延迟3天到账
     
    --begin 20150119 add phoneinterface一些渠道提交的即将慢充号码,100099,100095,,100101,移动所有号码都延迟2天到账
    CREATE PROCEDURE [dbo].[慢充号码渠道号码批量延期]
        @子渠道 varchar(100 ),
                    @yys int,
                    @天数 int,
                    @操作者 varchar(50 ),
                    @笔数 int,
        @返回值 int output
                    
    as
    begin
                     set nocount on
       -- declare @sum int
                     declare @flag nvarchar (50)
                     --如果怕影响系统性能,可以传入笔数
                     -- select @sum=count(*) from do_phone with (nolock) where isfinal=0 and from_channel='phoneinterface' and dotype in( 0,92 ,95)
        -- and yys =@yys and from_channel_child in(@子渠道) 
                     update  top (@笔数) do_phone set MaxEndTime =dateadd( day,@天数 ,MaxEndTime)   where isfinal= 0 and from_channel='phoneinterface' and dotype in( 0, 92 ,95 )
                     and yys = @yys and from_channel_child in(@子渠道)
                     if(@@ROWCOUNT >0)
                       begin
                                                     print '更新成功'
                                                     set @返回值= 1;
                                                     if(@yys =0)
                                       begin
                                                                     set @flag= '移动'
                                       end
                                       else if (@yys= 1)
                                       begin
                                                       set @flag= '联通'
                                       end
                                       else if (@yys= 2)
                                       begin
                                                       set @flag= '电信'
                                       end
                       end
                     else
                                       begin
                                                     print '更新失败'
                                                     set @返回值=- 1;
                                       end
                       insert into [dbo].[log_OperationSupport] (Operator, Content,Createtime )
          values(@操作者 ,'PhoneInterface父渠道和'+@子渠道 +'子渠道的'+@flag +'号码批量延期了'+cast (@笔数 as varchar( 50))+'笔' +cast( @返回值 as varchar(10 )),getdate());
                     
    end
    --begin 20150119 add phoneinterface一些渠道提交的即将慢充号码,100099,100095,,100101,移动所有号码都延迟2天到账
     
     
     

     
     
     
     
     
  • 相关阅读:
    蓝桥杯省赛模拟:村庄建设、郊外植树。
    Andrew 算法(构造凸包)
    Codeforces Round #635 (Div. 2)(A, B, C, D)
    级边凸包构造法(extreme edge)
    极点的凸包构造算法(extreme point)
    Codeforces Round #633 (Div. 2)(A, B, C)
    凸包---graham scan算法 + 例题P2742
    Element-ui中ElScrollBar组件滚动条的使用
    HTTP:Web的基础
    HTTP报文
  • 原文地址:https://www.cnblogs.com/ComputerVip/p/11624737.html
Copyright © 2020-2023  润新知