yumeng 2 лет назад
Родитель
Сommit
51ac39d629
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      ruixuan-live/src/main/resources/mapper/isc/SupplyChainMapper.xml

+ 4 - 4
ruixuan-live/src/main/resources/mapper/isc/SupplyChainMapper.xml

@@ -140,16 +140,16 @@
         on t1.item_id = t2.item_id
         where 1 = 1
         <if test="start != null and start != ''">
-            and order_create_time &gt;= #{start}
+            and t1.order_create_time &gt;= #{start}
         </if>
         <if test="end != null and end != ''">
-            and order_create_time &lt;= #{end}
+            and t1.order_create_time &lt;= #{end}
         </if>
         <if test="itemId != null and itemId != ''">
-            and item_id = #{itemId}
+            and t1.item_id = #{itemId}
         </if>
         <if test="itemTitle != null and itemTitle != ''">
-            and item_title like concat(concat('%',#{itemTitle}),'%')
+            and t1.item_title like concat(concat('%',#{itemTitle}),'%')
         </if>
         group by t1.item_id) t
         where 1 = 1