wuggemail@foxmail.com 3 miesięcy temu
rodzic
commit
6caa0a8d1f
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      app/cxinv/controller/FinancialProducts.php

+ 1 - 1
app/cxinv/controller/FinancialProducts.php

@@ -22,7 +22,7 @@ class FinancialProducts extends Base
         $param = $this->request->param(["skuCode" => "", "good_type" => "", "buyer_code" => "", "buyer_name" => "", "start" => "",
             "end" => "", "is_combind" => "", "basic_status" => "", "page" => 1, "size" => 15], "post", "trim");
         $where = [];
-        if ($param['skuCode'] != "") $where[] = ["skuCode", "=", "%{$param['skuCode']}%"];
+        if ($param['skuCode'] != "") $where[] = ["skuCode", "like", "%{$param['skuCode']}%"];
         if ($param['good_type'] != "") $where[] = ["good_type", "=", $param['good_type']];
         if ($param['buyer_code'] != "") $where[] = ["buyer_code", "=", $param['buyer_code']];
         if ($param['buyer_name'] != "") $where[] = ["buyer_name", "like", "%{$param['buyer_name']}%"];