瀏覽代碼

修复训练营排序问题

lixueqiang 2 年之前
父節點
當前提交
23c9792b7e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      kxs-system/kxs-system-biz/src/main/resources/mapper/KxsCampMapper.xml

+ 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.end_time <![CDATA[ >= ]]> #{now}
         </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
     </select>