Преглед на файлове

平台后台-订单列表-支持关键字搜索订单数据

Xpy преди 8 месеца
родител
ревизия
7451fff230
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      app/common/repositories/store/order/StoreOrderProductRepository.php

+ 1 - 1
app/common/repositories/store/order/StoreOrderProductRepository.php

@@ -42,6 +42,6 @@ class StoreOrderProductRepository extends BaseRepository
42 42
      */
43 43
     public function getOrderIdListByKeyword($keyword): array
44 44
     {
45
-        return $this->dao->selectWhere(['cart_info', 'like', '%' . $keyword . '%'])->column('order_id');
45
+        return $this->dao->selectWhere(['cart_info'=> ['like', '%' . $keyword . '%']])->column('order_id');
46 46
     }
47 47
 }