更新: 重构代码并优化财务统计逻辑中的统计功能
This commit is contained in:
parent
f845ce949e
commit
0059ccc19e
@ -51,10 +51,10 @@ class CostProjectStatisticsLogic extends BaseLogic
|
||||
['review_status','=', 1],
|
||||
['status','=',1]
|
||||
];
|
||||
$data=DictData::where('type_value','cost_project')->column('value');
|
||||
if($data){
|
||||
$where1[]=['business_nature','in',$data];
|
||||
$where2[]=['business_nature','in',$data];
|
||||
$DictData=DictData::where('type_value','cost_project')->column('value');
|
||||
if($DictData){
|
||||
$where1[]=['business_nature','in',$DictData];
|
||||
$where2[]=['business_nature','in',$DictData];
|
||||
}
|
||||
$total_apply_amount = $marketingContract->statistics_count($where1, $time, 'sum', '');
|
||||
$apply_amount_value = $marketingContract->statistics_count($where1, $time, 'group', 'create_time');
|
||||
|
Loading…
x
Reference in New Issue
Block a user