Zmiany pomiędzy wersją 10 and wersją 11 dla ChangeIssueDate
- Data i czas:
- 2013-12-18 12:44:11 (11 years temu)
Legend:
- Bez zmian
- Dodane
- Usunięte
- Zmienione
-
ChangeIssueDate
v10 v11 54 54 declare @ads2 as table (adid integer, orderitemId integer) 55 55 56 /*Ogłoszenia które normalnie wygasną przed 17:00 we wtorek ale mają przedłużenia - one powinny pójść*/ 56 Ogłoszenia które normalnie wygasną przed 17:00 we wtorek ale mają przedłużenia - one powinny pójść 57 57 58 insert into @ads 58 59 select productid from orderitems i join orders o on o.id = i.orderid where productid in … … 61 62 ) and i.startdate >= @changeIssueDate and i.startdate < @regularIssueDate and i.magazinepromotion > 0 and o.status <> 4 62 63 63 /*Ogłoszenia które maja start miedzy zmieniona data wydania a stara 17:00 we wtorek - one powinny pójść*/ 64 Ogłoszenia które maja start miedzy zmieniona data wydania a stara 17:00 we wtorek - one powinny pójść 65 64 66 insert into @ads2 65 67 select productid, i.id from orderitems i join orders o on o.id = i.orderid … … 70 72 select * from @ads2 71 73 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*/ 74 Ogłoszenia które normalnie wygasną przed 17:00, we wtorek - one nie powinny iść do tego poniedziałkowego wydania 75 74 76 select currentorderitem as oi, customerid as cid , * from ads where enddate > @changeIssueDate and enddate < @regularIssueDate and status = 1 and magazinepromotion > 0 75 77 and (id not in (select adid from @ads) or id not in (select adid from @ads2)) order by currentorderitem desc 76 78 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 */ 79 edycja ogloszen - wstrzymanie ogloszen ktore wygasna przed stara data wydania - wykluczajac przedluzenia i te rozpoczynajace sie miedzy pon a wtorkiem 80 79 81 update ads set status=5 where enddate > @changeIssueDate and enddate < @regularIssueDate and status = 1 and magazinepromotion > 0 80 82 and (id not in (select adid from @ads) or id not in (select adid from @ads2))