Zmiany pomiędzy wersją 1 and wersją 2 dla ChangeIssueDate
- Data i czas:
- 2012-10-29 13:59:46 (13 years temu)
Legend:
- Bez zmian
- Dodane
- Usunięte
- Zmienione
-
ChangeIssueDate
v1 v2 3 3 Należy znaleźć: 4 4 5 {{{ 5 6 $regularIssueDate - normalna data zamknięcia wydania 6 7 $changeIssueDate - zmieniona data wydania 8 }}} 7 9 8 10 1. Ogłoszenia które normalnie wygasną przed 17:00, we wtorek - one nie powinny iść do tego poniedziałkowego wydania 11 {{{ 9 12 select * from ads where enddate > '$changeIssueDate' and enddate < '$regularIssueDate ' and status = 1 and magazinepromotion > 0 13 }}} 10 14 11 15 Te ogłoszenia wyłączamy … … 13 17 14 18 2. Ogłoszenia które normalnie wygasną przed 17:00 we wtorek ale mają przedłużenia - one powinny pójść 19 {{{ 15 20 select * from orderitems i join orders o on o.id = i.orderid where productid in 16 21 ( 17 22 select id from ads where enddate > '$changeIssueDate' and enddate < '$regularIssueDate' and status = 1 18 23 ) and i.startdate >= '$regularIssueDate' and i.magazinepromotion > 0 and o.status <> 4 24 }}} 19 25 20 26 Należy aktywować przedłużenia, a więc w OrderItems odpowiednio zmodyfikować start oraz end date i uruchomić na team city task activate. 21 27 22 28 3. Ogłoszenia, które nie są aktywne w poniedziałek, ale włączą się jeszcze przed 17:00 we wtorek. 29 {{{ 23 30 select * from orderitems i join orders o on o.id = i.orderid 24 31 where o.status <> 4 and i.startdate >= '$changeIssueDate' and startdate < '$regularIssueDate' and subscriptionpromotion is null and i.magazinepromotion > 0 32 }}} 25 33 26 34 Należy aktywować ogłoszenia, a więc w OrderItems odpowiednio zmodyfikować start oraz end date i uruchomić na team city task activate.