...
|
...
|
@@ -124,6 +124,6 @@ |
|
|
|
|
|
<select id="selectFirstCode" resultType="java.lang.String" parameterType="java.lang.String" >
|
|
|
select code from resources_pool_and_code
|
|
|
where status=1 and pool_id in (${poolIds}) and start_time <= unix_timestamp(now()) and end_time >= unix_timestamp(now()) order by update_time desc limit 0,1
|
|
|
where status=1 and pool_id in (${poolIds}) and start_time <= unix_timestamp(now()) and end_time >= unix_timestamp(now()) order by update_time desc, id desc limit 0,1
|
|
|
</select>
|
|
|
</mapper> |
|
|
\ No newline at end of file |
...
|
...
|
|