修改查询统计字段
This commit is contained in:
parent
a546ddd353
commit
c9750921f1
@ -572,7 +572,7 @@ class WorkbenchLogic extends BaseLogic
|
|||||||
$cash_today = StoreCashFinanceFlow::where('store_id',$params['store_id'])
|
$cash_today = StoreCashFinanceFlow::where('store_id',$params['store_id'])
|
||||||
->whereDay('create_time')
|
->whereDay('create_time')
|
||||||
->where('status',YesNoEnum::YES)
|
->where('status',YesNoEnum::YES)
|
||||||
->sum('receipts');
|
->sum('receivable');
|
||||||
|
|
||||||
//总的营业额的统计 总的利润的统计 总的成本合集的统计 总的加到保证金的
|
//总的营业额的统计 总的利润的统计 总的成本合集的统计 总的加到保证金的
|
||||||
$all = StoreOrder::where(['paid'=>YesNoEnum::YES,'store_id'=>$params['store_id']]);
|
$all = StoreOrder::where(['paid'=>YesNoEnum::YES,'store_id'=>$params['store_id']]);
|
||||||
@ -593,7 +593,7 @@ class WorkbenchLogic extends BaseLogic
|
|||||||
$cash_all = StoreCashFinanceFlow::where('store_id',$params['store_id'])
|
$cash_all = StoreCashFinanceFlow::where('store_id',$params['store_id'])
|
||||||
->where('status',YesNoEnum::YES)
|
->where('status',YesNoEnum::YES)
|
||||||
->whereMonth('create_time', $params['month'])
|
->whereMonth('create_time', $params['month'])
|
||||||
->sum('receipts');
|
->sum('receivable');
|
||||||
}
|
}
|
||||||
$turnover_all = $all
|
$turnover_all = $all
|
||||||
->sum('pay_price');
|
->sum('pay_price');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user