wugg 3 år sedan
förälder
incheckning
f6d9ecc96e
1 ändrade filer med 1 tillägg och 1 borttagningar
  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();