feat: #10000 商品列表返回修改

This commit is contained in:
赵世界 2022-08-08 17:25:12 +08:00
parent 73cebca1e5
commit 8c3d717561
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ class GoodsSkusController extends Controller
$query->with(['type:id,name', 'brand:id,name']); $query->with(['type:id,name', 'brand:id,name']);
}]) }])
->with(['daily' => function ($query) use ($day) { ->with(['daily' => function ($query) use ($day) {
$query->where('day', $day)->first(['arrived_today_num', 'loss_num', 'inventory']); $query->where('day', $day);
}]) }])
->paginate(); ->paginate();

View File

@ -4,5 +4,5 @@ namespace App\Models;
class DailyStockRecord extends Model class DailyStockRecord extends Model
{ {
protected $hidden = ['created_at', 'updated_at'];
} }