Explorar o código

搜索供货商名称

shish %!s(int64=2) %!d(string=hai) anos
pai
achega
a3a5f73c32
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      app-ghs/controllers/PurchaseOrderController.php

+ 2 - 0
app-ghs/controllers/PurchaseOrderController.php

@@ -515,6 +515,8 @@ class PurchaseOrderController extends BaseController
             $re = strstr($name, 'PH');
             $re = strstr($name, 'PH');
             if (!empty($re)) {
             if (!empty($re)) {
                 $where['orderSn'] = $name;
                 $where['orderSn'] = $name;
+            } else {
+                $where['ghsName'] = ['like', $name];
             }
             }
         }
         }