ソースを参照

兼容app 的不同userId

hr~ 3 週間 前
コミット
92f9118e5e
1 ファイル変更4 行追加3 行削除
  1. 4 3
      lot/src/main/resources/mapper/LotMapper.xml

+ 4 - 3
lot/src/main/resources/mapper/LotMapper.xml

@@ -86,13 +86,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
                 and status in ('Starting','Bidding')
             </if>
             <if test="lot.status==2">
-                and status ='Waiting' and now()>start_time
+                and status ='Waiting' and now() &lt; start_time
             </if>
             <if test="lot.status==3">
                 and status ='Sold'
             </if>
             <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>
 
         </where>
@@ -120,7 +121,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             when status = 'Waiting' then 2
             when status in ('Sold', 'Pass') then 3
             else 4
-        end, last_price_time desc
+        end, sort desc
     </select>
 
     <insert id="insertLot" parameterType="cn.hobbystocks.auc.domain.Lot" useGeneratedKeys="true" keyProperty="id">