|
@@ -59,7 +59,7 @@ class SystemStoreStockBill extends BaseModel
|
|
|
$model = $model->where('a.id','>',0);
|
|
$model = $model->where('a.id','>',0);
|
|
|
$model = $model->field('a.*,b.image,b.is_show,b.is_del,b.store_name');
|
|
$model = $model->field('a.*,b.image,b.is_show,b.is_del,b.store_name');
|
|
|
$count = $model->count();
|
|
$count = $model->count();
|
|
|
- $data = $model->page($where['page'],$where['limit'])->order("product_id desc")->select()->toarray();
|
|
|
|
|
|
|
+ $data = $model->page($where['page'],$where['limit'])->order("id desc")->select()->toarray();
|
|
|
foreach ($data as &$v)
|
|
foreach ($data as &$v)
|
|
|
{
|
|
{
|
|
|
$v['store'] = SystemStore::where('id',$v['store_id'])->value('name');
|
|
$v['store'] = SystemStore::where('id',$v['store_id'])->value('name');
|