浏览代码

获取门店信息(根绝tableName)

Panda 2 周之前
父节点
当前提交
8d175df3f3
共有 1 个文件被更改,包括 11 次插入0 次删除
  1. 11 0
      application/common/business/PaymentBusiness.php

+ 11 - 0
application/common/business/PaymentBusiness.php

@@ -39,6 +39,17 @@ class PaymentBusiness extends BusinessResult
     public function __construct() {}
 
     /**
+     * 获取门店信息(根绝tableName)
+     * @param string $tableName
+     * @param int $shopId
+     * @return array|bool|\PDOStatement|string|\think\Model|null
+     */
+    public function getShopInfo(string $tableName,int $shopId)
+    {
+        return Db::name($tableName)->where(['shop_id' => $shopId])->find();
+    }
+
+    /**
      * 订单成交
      * @param int $bill_id
      * @param string $third_no