Przeglądaj źródła

修复训练营排序问题

lixueqiang 2 lat temu
rodzic
commit
23c9792b7e

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

@@ -75,7 +75,7 @@
             and a.start_time <![CDATA[ <= ]]> #{now}
             and a.start_time <![CDATA[ <= ]]> #{now}
             and a.end_time <![CDATA[ >= ]]> #{now}
             and a.end_time <![CDATA[ >= ]]> #{now}
         </where>
         </where>
-        ORDER BY FIELD(id, <foreach collection="pids" item="userId" separator=","> #{userId} </foreach>)
+        ORDER BY FIELD(b.user_id, <foreach collection="pids" item="userId" separator=","> #{userId} </foreach>)
         limit 1
         limit 1
     </select>
     </select>