소스 검색

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

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
 }