|
@@ -86,13 +86,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
and status in ('Starting','Bidding')
|
|
and status in ('Starting','Bidding')
|
|
|
</if>
|
|
</if>
|
|
|
<if test="lot.status==2">
|
|
<if test="lot.status==2">
|
|
|
- and status ='Waiting' and now()>start_time
|
|
|
|
|
|
|
+ and status ='Waiting' and now() < start_time
|
|
|
</if>
|
|
</if>
|
|
|
<if test="lot.status==3">
|
|
<if test="lot.status==3">
|
|
|
and status ='Sold'
|
|
and status ='Sold'
|
|
|
</if>
|
|
</if>
|
|
|
<if test="lot.status==4">
|
|
<if test="lot.status==4">
|
|
|
- and now()+ interval '1 hour'>end_time and status in ('Starting','Bidding')
|
|
|
|
|
|
|
+<!-- 当前数据库utc时间 -->
|
|
|
|
|
+ and now()+ interval '9 hour'>end_time and status in ('Starting','Bidding')
|
|
|
</if>
|
|
</if>
|
|
|
|
|
|
|
|
</where>
|
|
</where>
|
|
@@ -120,7 +121,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
when status = 'Waiting' then 2
|
|
when status = 'Waiting' then 2
|
|
|
when status in ('Sold', 'Pass') then 3
|
|
when status in ('Sold', 'Pass') then 3
|
|
|
else 4
|
|
else 4
|
|
|
- end, last_price_time desc
|
|
|
|
|
|
|
+ end, sort desc
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
<insert id="insertLot" parameterType="cn.hobbystocks.auc.domain.Lot" useGeneratedKeys="true" keyProperty="id">
|
|
<insert id="insertLot" parameterType="cn.hobbystocks.auc.domain.Lot" useGeneratedKeys="true" keyProperty="id">
|