feat: 基础完成

This commit is contained in:
赵世界 2024-03-15 17:00:25 +08:00
parent feddef6278
commit 7ac34fcc13

View File

@ -120,7 +120,7 @@ class DailySalesReport extends Command
$date = Carbon::parse($startTime)->format('Y-m-d');
$goodsSkus = GoodsSku::query()
->select(['goods_id', 'external_sku_id', 'name', 'id'])
->select(['goods_id', 'external_sku_id', 'name', 'id', 'goal_rate'])
->with(['daily' => function ($query) use ($date) {
$query->where('day', $date);
}])