Browse Source

billrecord type

LIDEXI 4 năm trước cách đây
mục cha
commit
00c0334b9a

+ 1 - 1
src/main/java/org/springblade/modules/ldt/mall/mapper/MallMapper.xml

@@ -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>