ソースを参照

添加条件查询租赁电话

moonsflyer 9 ヶ月 前
コミット
ca08d89f05
1 ファイル変更6 行追加0 行削除
  1. 6 0
      app/adminapi/lists/asset/AssetLeaseLists.php

+ 6 - 0
app/adminapi/lists/asset/AssetLeaseLists.php

@@ -70,6 +70,12 @@ class AssetLeaseLists extends BaseAdminDataLists implements ListsSearchInterface
                     $where[] = ['tenant_name', 'like', '%' . $parms['tenant_name']. '%'];
                 }
             }
+
+            if(isset($parms['tenant_mobile'])){
+                if(!empty($parms['tenant_mobile'])){
+                    $where[] = ['tenant_mobile', 'like', '%' . $parms['tenant_mobile']. '%'];
+                }
+            }
         }
 
         $lists = (new AssetLeaseInfo())->field('*')