|
@@ -65,8 +65,10 @@
|
|
|
DATE_FORMAT(a.start_time,'%Y-%m-%d') as startTime,
|
|
|
DATE_FORMAT(a.end_time,'%Y-%m-%d') as endTime,
|
|
|
a.service_status as serviceStatus,
|
|
|
- b.access_type as accessType
|
|
|
+ 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
|
|
|
where a.is_deleted='N' and b.is_deleted='N' and a.user_id=#{userId};
|
|
|
</select>
|
|
|
|