|
@@ -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>
|
|
|
|
|
|