Skip to content

Commit

Permalink
TT#14235 fix fraud query empty daily notify and lock
Browse files Browse the repository at this point in the history
Change-Id: I9387f7d48d06c5be961180ee767d0c6993fcc5b4
  • Loading branch information
Rene Krenn committed Apr 24, 2017
1 parent 8cb779e commit aeaf59a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/NGCP/Schema/Result/contract_fraud_events.pm
Expand Up @@ -108,13 +108,13 @@ FROM (
IF (i.interval = 'month',
IF (cfp.fraud_interval_limit > 0,
cfp.fraud_interval_lock, bp.fraud_interval_lock),
IF (cfp.fraud_daily_lock > 0,
IF (cfp.fraud_daily_limit > 0,
cfp.fraud_daily_lock, bp.fraud_daily_lock)
) AS interval_lock,
IF (i.interval = 'month',
IF (cfp.fraud_interval_limit > 0,
cfp.fraud_interval_notify, bp.fraud_interval_notify),
IF (cfp.fraud_daily_notify > 0,
IF (cfp.fraud_daily_limit > 0,
cfp.fraud_daily_notify, bp.fraud_daily_notify)
) AS interval_notify
FROM (SELECT IF(? = 'month','month','day') AS 'interval') i,
Expand Down Expand Up @@ -147,4 +147,3 @@ HAVING interval_cost >= interval_limit
");

1;

0 comments on commit aeaf59a

Please sign in to comment.