更新: 重构代码并优化财务统计逻辑中的统计功能
This commit is contained in:
parent
1c6a2941c7
commit
0c2326c9b5
@ -41,9 +41,14 @@ class CostProjectStatisticsLogic extends BaseLogic
|
|||||||
$financialRefund = new FinancialRefund();
|
$financialRefund = new FinancialRefund();
|
||||||
$financialSettlement = new FinancialSettlement();
|
$financialSettlement = new FinancialSettlement();
|
||||||
|
|
||||||
|
$where1=[
|
||||||
$total_apply_amount = $marketingContract->statistics_count([], $time, 'sum', '');
|
['review_status','=', 1],
|
||||||
$apply_amount_value = $marketingContract->statistics_count([], $time, 'group', 'create_time');
|
['contract_type','=',0],
|
||||||
|
['business_nature','=',4],
|
||||||
|
['status','=',0]
|
||||||
|
];
|
||||||
|
$total_apply_amount = $marketingContract->statistics_count($where1, $time, 'sum', '');
|
||||||
|
$apply_amount_value = $marketingContract->statistics_count($where1, $time, 'group', 'create_time');
|
||||||
$data[] = [
|
$data[] = [
|
||||||
'title' => '待立项项目',
|
'title' => '待立项项目',
|
||||||
'desc' => '',
|
'desc' => '',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user