Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Cong.Zhao
/
musician-api.hikoon.com
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
d7af755a
...
d7af755a4a778b50c99fc19ca2a8a0b33e9f4015
authored
2025-03-28 16:16:23 +0800
by
Cong.Zhao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
*
1 parent
060ceebe
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
app/Http/Controllers/Release/BaseController.php
app/Services/IssueService.php
app/Http/Controllers/Release/BaseController.php
View file @
d7af755
...
...
@@ -5,9 +5,6 @@ namespace App\Http\Controllers\Release;
use
App\Helper\CacheKeyTools
;
use
App\Helper\Response
;
use
App\Http\Controllers\Controller
;
use
GuzzleHttp\Client
;
use
Illuminate\Support\Facades\Cache
;
use
Illuminate\Support\Facades\Log
;
class
BaseController
extends
Controller
...
...
app/Services/IssueService.php
View file @
d7af755
...
...
@@ -64,11 +64,17 @@ class IssueService extends Service
*/
public
function
subCompany
()
{
$filter
=
[
'HNBX'
,
'HNHZGJ'
,
'WHCE'
];
$company_ids
=
Stakeholder
::
query
()
->
whereIn
(
'id'
,
$this
->
request
->
get
(
'stakeholder_ids'
))
->
pluck
(
'company_id'
)
->
toArray
();
$subject
=
Subject
::
query
()
->
whereIn
(
'company_id'
,
$company_ids
)
->
where
(
'attr'
,
'like'
,
"%3%"
)
->
groupBy
(
'no'
)
->
get
([
'no as value'
,
'name'
]);
->
where
(
'brand_id'
,
'>'
,
0
)
->
get
([
'no as value'
,
'name'
,
'company_id'
])
->
filter
(
function
(
$item
)
use
(
$filter
)
{
if
(
$item
->
company_id
!=
1
)
{
return
true
;
}
return
!
in_array
(
$item
->
value
,
$filter
);
});
return
Response
::
success
(
$subject
);
}
...
...
Please
register
or
sign in
to post a comment