فهرست منبع

修复训练营排序问题

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>