Zmiany pomiędzy wersją 1 and wersją 2 dla ChangeIssueDate

Pokaż
Ignoruj:
Data i czas:
2012-10-29 13:59:46 (13 years temu)
Autor:
grzesiek (IP: 10.0.1.121)
Komentarz:

--

Legend:

Bez zmian
Dodane
Usunięte
Zmienione
  • ChangeIssueDate

    v1 v2  
    33Należy znaleźć: 
    44 
     5{{{ 
    56$regularIssueDate - normalna data zamknięcia wydania 
    67$changeIssueDate - zmieniona data wydania 
     8}}} 
    79 
    8101. Ogłoszenia które normalnie wygasną przed 17:00, we wtorek - one nie powinny iść do tego poniedziałkowego wydania 
     11{{{ 
    912select * from ads where enddate > '$changeIssueDate' and enddate < '$regularIssueDate ' and status = 1 and magazinepromotion > 0 
     13}}} 
    1014 
    1115Te ogłoszenia wyłączamy 
     
    1317 
    14182. Ogłoszenia które normalnie wygasną przed 17:00 we wtorek ale mają przedłużenia - one powinny pójść 
     19{{{ 
    1520select * from orderitems i join orders o on o.id = i.orderid where productid in 
    1621( 
    1722  select id from ads where enddate > '$changeIssueDate' and enddate < '$regularIssueDate' and status = 1 
    1823) and i.startdate >= '$regularIssueDate' and i.magazinepromotion > 0 and o.status <> 4 
     24}}} 
    1925 
    2026Należy aktywować przedłużenia, a więc w OrderItems odpowiednio zmodyfikować start oraz end date i uruchomić na team city task activate. 
    2127 
    22283. Ogłoszenia, które nie są aktywne w poniedziałek, ale włączą się jeszcze przed 17:00 we wtorek. 
     29{{{ 
    2330select * from orderitems i join orders o on o.id = i.orderid  
    2431where o.status <> 4 and i.startdate >= '$changeIssueDate' and startdate < '$regularIssueDate' and subscriptionpromotion is null and i.magazinepromotion > 0 
     32}}} 
    2533 
    2634Należy aktywować ogłoszenia, a więc w OrderItems odpowiednio zmodyfikować start oraz end date i uruchomić na team city task activate.