mirror of
https://github.com/standardebooks/web.git
synced 2025-07-22 07:14:59 -04:00
Change 'timestamp' properties on objects to more descriptive names
This commit is contained in:
parent
18f761929a
commit
dbefba6b94
32 changed files with 74 additions and 74 deletions
|
@ -12,7 +12,7 @@ $patronsCircle = Db::Query('SELECT if(p.AlternateName is not null, p.AlternateNa
|
|||
on p.UserId = u.UserId
|
||||
where
|
||||
p.IsAnonymous = false
|
||||
and p.DeactivatedTimestamp is null
|
||||
and p.Ended is null
|
||||
order by regexp_substr(SortedName, "[\\\p{Lu}][\\\p{L}\-]+$") asc;
|
||||
');
|
||||
|
||||
|
@ -25,9 +25,9 @@ $anonymousPatronCount = Db::Query('SELECT sum(cnt) as AnonymousPatronCount
|
|||
UserId is null
|
||||
and
|
||||
(
|
||||
(Amount >= 100 and Timestamp >= utc_timestamp() - interval 1 year)
|
||||
(Amount >= 100 and Created >= utc_timestamp() - interval 1 year)
|
||||
or
|
||||
(Amount >= 10 and IsRecurring = true and Timestamp >= utc_timestamp() - interval 30 day)
|
||||
(Amount >= 10 and IsRecurring = true and Created >= utc_timestamp() - interval 30 day)
|
||||
)
|
||||
)
|
||||
union all
|
||||
|
@ -36,7 +36,7 @@ $anonymousPatronCount = Db::Query('SELECT sum(cnt) as AnonymousPatronCount
|
|||
where
|
||||
IsAnonymous = true
|
||||
and
|
||||
DeactivatedTimestamp is null
|
||||
Ended is null
|
||||
)
|
||||
) x
|
||||
')[0]->AnonymousPatronCount;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue