|
@@ -67,7 +67,8 @@
|
|
|
d.app_key_id as appKeyId,
|
|
|
d.app_key_secret as appKeySecret,
|
|
|
case when c.id is null then 0 else 1 end as renewalsStutas,
|
|
|
- case when sysdate()>a.end_time then 0 else 1 end as isExpire
|
|
|
+ case when sysdate()>a.end_time then 0 else 1 end as isExpire,
|
|
|
+ case when a.start_time>sysdate() then 0 else 1 end as isBegin
|
|
|
from diag_opened_products a join diag_lantone_product b on a.product_id=b.id
|
|
|
left join diag_user_renewals c on a.user_id=c.user_id and a.product_id=c.product_id and c.renewals_status=0 and c.cancel_renewals=0 and c.is_deleted='N'
|
|
|
left join
|