@@ -40,7 +40,7 @@
<select id="pageWithActivityCount" resultMap="mallResultMap">
select
- lm.*,(select count(id) from ldt_activity where is_deleted = 0 and audit_status=1) as activity_counts
+ lm.*,(select count(id) from ldt_activity where is_deleted = 0 and audit_status=1 and mall_id=lm.id) as activity_counts
from ldt_mall lm
where lm.is_deleted = 0
</select>