更新: 重构代码并优化财务统计逻辑中的统计功能
This commit is contained in:
parent
0c2326c9b5
commit
977987ebb2
@ -77,8 +77,13 @@ class CostProjectStatisticsLogic extends BaseLogic
|
||||
'type' => 1,
|
||||
];
|
||||
//签约金额
|
||||
$total_apply_amount = $marketingContract->statistics([], $time, 'sum', '', 'signed_amount');
|
||||
$apply_amount_value = $marketingContract->statistics([], $time, 'group', 'create_time', 'signed_amount');
|
||||
$where2=[
|
||||
['review_status','=', 1],
|
||||
['business_nature','=',4],
|
||||
['status','=',1]
|
||||
];
|
||||
$total_apply_amount = $marketingContract->statistics($where2, $time, 'sum', '', 'signed_amount');
|
||||
$apply_amount_value = $marketingContract->statistics($where2, $time, 'group', 'create_time', 'signed_amount');
|
||||
$data[] = [
|
||||
'title' => '签约金额',
|
||||
'desc' => '',
|
||||
|
Loading…
x
Reference in New Issue
Block a user