Zmiany pomiędzy wersją 10 and wersją 11 dla ChangeIssueDate

Pokaż
Ignoruj:
Data i czas:
2013-12-18 12:44:11 (11 years temu)
Autor:
alina (IP: 10.0.1.126)
Komentarz:

--

Legend:

Bez zmian
Dodane
Usunięte
Zmienione
  • ChangeIssueDate

    v10 v11  
    5454declare @ads2 as table (adid integer, orderitemId integer) 
    5555 
    56 /*Ogłoszenia które normalnie wygasną przed 17:00 we wtorek ale mają przedłużenia - one powinny pójść*/ 
     56Ogłoszenia które normalnie wygasną przed 17:00 we wtorek ale mają przedłużenia - one powinny pójść 
     57 
    5758insert into @ads 
    5859select productid from orderitems i join orders o on o.id = i.orderid where productid in 
     
    6162) and i.startdate >= @changeIssueDate and i.startdate < @regularIssueDate and i.magazinepromotion > 0 and o.status <> 4 
    6263 
    63 /*Ogłoszenia które maja start miedzy zmieniona data wydania a stara 17:00 we wtorek - one powinny pójść*/ 
     64Ogłoszenia które maja start miedzy zmieniona data wydania a stara 17:00 we wtorek - one powinny pójść 
     65 
    6466insert into @ads2 
    6567select productid, i.id from orderitems i join orders o on o.id = i.orderid  
     
    7072select * from @ads2 
    7173 
    72 /* ogloszenia ktore trzeba wstrzymac - do exportu */ 
    73 /*Ogłoszenia które normalnie wygasną przed 17:00, we wtorek - one nie powinny iść do tego poniedziałkowego wydania*/ 
     74Ogłoszenia które normalnie wygasną przed 17:00, we wtorek - one nie powinny iść do tego poniedziałkowego wydania 
     75 
    7476select currentorderitem as oi, customerid as cid , * from ads where enddate > @changeIssueDate and enddate < @regularIssueDate and status = 1 and magazinepromotion > 0 
    7577and (id not in (select adid from @ads) or id not in (select adid from @ads2)) order by currentorderitem desc 
    7678 
    77 /* wstzrymanie przed 17 - aktywacja ogloszen po exporcie */ 
    78 /*edycja ogloszen - wstrzymanie ogloszen ktore wygasna przed stara data wydania - wykluczajac przedluzenia i te rozpoczynajace sie miedzy pon a wtorkiem */ 
     79edycja ogloszen - wstrzymanie ogloszen ktore wygasna przed stara data wydania - wykluczajac przedluzenia i te rozpoczynajace sie miedzy pon a wtorkiem 
     80 
    7981update ads set status=5 where enddate > @changeIssueDate and enddate < @regularIssueDate and status = 1 and magazinepromotion > 0 
    8082and (id not in (select adid from @ads) or id not in (select adid from @ads2))