From 881ec2705284dff439983742002131079dd7ae33 Mon Sep 17 00:00:00 2001
From: 王晓刚 <wxg@bronet.cn>
Date: Tue, 25 Aug 2020 13:30:09 +0800
Subject: [PATCH] 物流单号

---
 application/index/model/Goods.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/application/index/model/Goods.php b/application/index/model/Goods.php
index d387ab0..d5bb3a5 100644
--- a/application/index/model/Goods.php
+++ b/application/index/model/Goods.php
@@ -66,7 +66,8 @@ class Goods extends Model
             ->join('sto_goodstype t','t.id = g.goodstype_id')
             ->join('sto_store s','s.id = g.store_id')
             ->where($where)
-            ->find(false);
+            ->fetchSql()
+            ->find();
         dump($data);exit;
         $storeModel = new Store();
         $store = $storeModel->findData(['id'=>$data['store_id']]);
--
libgit2 0.24.0