1
This commit is contained in:
@@ -46,7 +46,8 @@
|
||||
select
|
||||
count(*) as totalCount,
|
||||
sum(case when is_use = 0 then 1 else 0 end) as availableCount,
|
||||
sum(case when is_use = 1 then 1 else 0 end) as usedCount
|
||||
sum(case when is_use = 1 then 1 else 0 end) as usedCount,
|
||||
(select max(created_at) from comments where product_id = #{productId}) as lastCommentUpdateTime
|
||||
from comments
|
||||
where product_id = #{productId}
|
||||
</select>
|
||||
|
||||
Reference in New Issue
Block a user