Przeglądaj źródła

训练营分组ID自增修复

mac 2 lat temu
rodzic
commit
91d866c3b2

+ 1 - 1
kxs-system/kxs-system-biz/src/main/resources/mapper/KxsCampMapper.xml

@@ -68,7 +68,7 @@
         limit 1
         limit 1
     </select>
     </select>
     <select id="getBySysPage" resultType="com.kxs.system.api.vo.admin.camp.SysCampPageVO">
     <select id="getBySysPage" resultType="com.kxs.system.api.vo.admin.camp.SysCampPageVO">
-        select a.*, count(b.id) as group_count from kxs_camp a
+        select a.*, count(b.group_id) as group_count from kxs_camp a
         left join kxs_camp_group b on a.id = b.camp_id
         left join kxs_camp_group b on a.id = b.camp_id
         <where>
         <where>
             and a.del_flag = 0
             and a.del_flag = 0