Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
liexin_supplier
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
2babca59
authored
Aug 11, 2021
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
统计问题
parent
99849ce7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
app/Http/Services/SupplierStatisticsService.php
app/Http/Services/SupplierStatisticsService.php
View file @
2babca59
...
@@ -89,6 +89,13 @@ class SupplierStatisticsService
...
@@ -89,6 +89,13 @@ class SupplierStatisticsService
//显示默认的数据(有权限逻辑)
//显示默认的数据(有权限逻辑)
$filter
=
new
SupplierFilter
();
$filter
=
new
SupplierFilter
();
$model
=
$model
->
where
(
'supplier_code'
,
'!='
,
''
);
$model
=
$model
->
where
(
'supplier_code'
,
'!='
,
''
);
if
(
$type
==
'contact_no_complete'
)
{
// dd($filter->defaultFilter($model, $type)->count(DB::raw("distinct(lie_supplier_channel.supplier_id)")));
$subQuery
=
$filter
->
defaultFilter
(
$model
,
$type
);
// dd($subQuery->toSql());
// return DB::connection('web')->table(DB::raw("({$subQuery->toSql()}) as sub"))->count();
return
$subQuery
->
get
()
->
count
();
}
return
$filter
->
defaultFilter
(
$model
,
$type
)
->
count
();
return
$filter
->
defaultFilter
(
$model
,
$type
)
->
count
();
}
}
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment