瀏覽代碼

fix:查询

jintao.geng 1 月之前
父節點
當前提交
26badf5be1
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      lot/src/main/resources/mapper/LotMapper.xml

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

@@ -82,16 +82,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
                     #{id}
                 </foreach>
             </if>
-            <if test="status==1">
+            <if test="lot.status==1">
                 and status in ('Starting','Bidding')
             </if>
-            <if test="status==2">
+            <if test="lot.status==2">
                 and status ='Waiting' and now()>start_time
             </if>
-            <if test="status==3">
+            <if test="lot.status==3">
                 and status ='Sold'
             </if>
-            <if test="status==4">
+            <if test="lot.status==4">
                 and now()+ interval '1 hour'>end_time and status in ('Starting','Bidding')
             </if>