wugg 3 tahun lalu
induk
melakukan
f6d9ecc96e
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      app/admin/controller/Good.php

+ 1 - 1
app/admin/controller/Good.php

@@ -276,7 +276,7 @@ class Good extends \app\BaseController
         $type_code = isset($this->post['type_code']) &&$this->post['type_code'] !=="" ? trim($this->post['type_code'])
             :"";
         if($type_code!==""){
-            $condition[]=["b.type_code","like","%{$type_code}%ss"];
+            $condition[]=["b.type_code","like","%{$type_code}%"];
         }
         $count = Db::name("good_type")->alias("b")->join("good a","a.good_code = b.good_code","left")
             ->where($condition)->count();