|
@@ -164,9 +164,8 @@ class DepotGoods extends Controller
|
|
|
if ($this->request->isGet()) {
|
|
|
$id = $this->request->get('id');
|
|
|
$depot_goods = Db::name('DepotGoods')->where(['id' => $id])->find();
|
|
|
- $list = Db::name('DepotGoodsItem')->where(['goods_id' => $depot_goods['goods_id'],'depot_id'=>$depot_goods['depot_id']])->select();
|
|
|
- var_dump($list,$depot_goods);
|
|
|
- $this->fetch('', ['list' => $list,'depot_id'=>$depot_goods['depot_id'],'goods_id'=>$depot_goods['goods_id']]);
|
|
|
+ $list = Db::name('DepotGoodsItem')->where(['goods_id' => $depot_goods['id'],'depot_id'=>$depot_goods['depot_id']])->select();
|
|
|
+ $this->fetch('', ['list' => $list,'depot_id'=>$depot_goods['depot_id'],'goods_id'=>$depot_goods['id']]);
|
|
|
} else {
|
|
|
list($post, $data) = [$this->request->post(), []];
|
|
|
if(!$post['depot_id'] || !$post['goods_id'] ||!$post['order_id']) $this->error('参数错误');
|