重构代码并优化监督项目统计逻辑中的业务性质筛选功能
This commit is contained in:
parent
0059ccc19e
commit
deb451b0fd
@ -32,9 +32,12 @@ class SupervisionProjectStatisticsLogic extends BaseLogic
|
|||||||
$where1=[
|
$where1=[
|
||||||
['review_status', '=', 1],
|
['review_status', '=', 1],
|
||||||
['contract_type', '=', 0],
|
['contract_type', '=', 0],
|
||||||
['business_nature', '=', 1],
|
|
||||||
['status', '=', 0]
|
['status', '=', 0]
|
||||||
];
|
];
|
||||||
|
$DictData=DictData::where('type_value','approved')->column('value');
|
||||||
|
if($DictData){
|
||||||
|
$where1[]=['business_nature','in',$DictData];
|
||||||
|
}
|
||||||
$total_apply_amount = $marketingContract->statistics_count($where1, $time, 'sum', '');
|
$total_apply_amount = $marketingContract->statistics_count($where1, $time, 'sum', '');
|
||||||
$apply_amount_value = $marketingContract->statistics_count($where1, $time, 'group', 'create_time');
|
$apply_amount_value = $marketingContract->statistics_count($where1, $time, 'group', 'create_time');
|
||||||
$data[] = [
|
$data[] = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user