正在显示
1 个修改的文件
包含
2 行增加
和
1 行删除
@@ -66,7 +66,8 @@ class Goods extends Model | @@ -66,7 +66,8 @@ class Goods extends Model | ||
66 | ->join('sto_goodstype t','t.id = g.goodstype_id') | 66 | ->join('sto_goodstype t','t.id = g.goodstype_id') |
67 | ->join('sto_store s','s.id = g.store_id') | 67 | ->join('sto_store s','s.id = g.store_id') |
68 | ->where($where) | 68 | ->where($where) |
69 | - ->find(false); | 69 | + ->fetchSql() |
70 | + ->find(); | ||
70 | dump($data);exit; | 71 | dump($data);exit; |
71 | $storeModel = new Store(); | 72 | $storeModel = new Store(); |
72 | $store = $storeModel->findData(['id'=>$data['store_id']]); | 73 | $store = $storeModel->findData(['id'=>$data['store_id']]); |
-
请 注册 或 登录 后发表评论