mirror of
https://gitee.com/hzchunfen/erp.git
synced 2025-12-01 06:30:49 +00:00
feat: #10000 商品列表返回修改
This commit is contained in:
parent
73cebca1e5
commit
8c3d717561
@ -56,7 +56,7 @@ class GoodsSkusController extends Controller
|
||||
$query->with(['type:id,name', 'brand:id,name']);
|
||||
}])
|
||||
->with(['daily' => function ($query) use ($day) {
|
||||
$query->where('day', $day)->first(['arrived_today_num', 'loss_num', 'inventory']);
|
||||
$query->where('day', $day);
|
||||
}])
|
||||
->paginate();
|
||||
|
||||
|
||||
@ -4,5 +4,5 @@ namespace App\Models;
|
||||
|
||||
class DailyStockRecord extends Model
|
||||
{
|
||||
|
||||
protected $hidden = ['created_at', 'updated_at'];
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user