|
@@ -68,7 +68,7 @@
|
|
|
b.access_type as accessType,
|
|
|
case when c.id is null then 0 else 1 end as renewalsStutas
|
|
|
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
|
|
|
+ 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
|
|
|
where a.is_deleted='N' and b.is_deleted='N' and a.user_id=#{userId};
|
|
|
</select>
|
|
|
|