Zory 5 days ago
parent
commit
5dfe693515

+ 1 - 0
app/extra/service/saas/LifeService.php

@@ -44,6 +44,7 @@ class LifeService extends Service
         !empty($param['statusLt']) && $filter[] = ["status", '=', ($param['statusLt']-1)];
         !empty($param['status']) && $filter[] = ["status", '=', $param['status']];
         !empty($param['orderid']) && $filter[] = ["order_id", 'like', "%{$param['orderid']}%"];
+        !empty($param['certificate']) && $filter[] = ["certificate_id", 'like', "%{$param['certificate']}%"];
         return $filter;
     }
 

+ 1 - 0
app/extra/service/saas/OrderService.php

@@ -72,6 +72,7 @@ class OrderService extends Service
         !empty($param['ordersn']) && $filter[] = ["order_sn", 'like', "%{$param['ordersn']}%"];
         !empty($param['product']) && $filter[] = ["product_id", 'like', "%{$param['product']}%"];
         !empty($param['name']) && $filter[] = ["product_name", 'like', "%{$param['name']}%"];
+        !empty($param['certificate']) && $filter[] = ["certificate_id", 'like', "%{$param['certificate']}%"];
         return $filter;
     }
 

+ 48 - 0
app/model/saas/SaasWarehouse.php

@@ -0,0 +1,48 @@
+<?php
+
+namespace app\model\saas;
+
+use app\extra\basic\Model;
+
+
+/**
+ * @property integer $id (主键)
+ * @property integer $agent_id 代理id
+ * @property integer $store_id 店铺id
+ * @property string $name 
+ * @property mixed $print_id 打印机ID
+ * @property integer $status 
+ * @property mixed $create_at
+ */
+class SaasWarehouse extends Model
+{
+    /**
+     * The connection name for the model.
+     *
+     * @var string|null
+     */
+    protected $connection = 'mysql';
+    
+    /**
+     * The table associated with the model.
+     *
+     * @var string
+     */
+    protected string $table = "saas_warehouse";
+    
+    /**
+     * The primary key associated with the table.
+     *
+     * @var string
+     */
+    protected string $primaryKey = "id";
+    
+    /**
+     * Indicates if the model should be timestamped.
+     *
+     * @var bool
+     */
+    public bool $timestamps = false;
+
+
+}