소스 검색

修复训练营排序问题

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>