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
3964663d
...
3964663d41225cac88ce9dcacdefcf80398043e7
authored
2021-09-17 19:43:07 +0800
by
lemon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
*
1 parent
adbb42a7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
app/Models/Legal/Stakeholder.php
app/Models/Legal/Stakeholder.php
View file @
3964663
...
...
@@ -32,8 +32,8 @@ class Stakeholder extends BaseModel
switch
(
intval
(
$identifier
->
type
))
{
case
1
:
//个人
$stakeholder
=
Stakeholder
::
query
()
->
join
(
'stakeholder_detail sd'
,
'stakeholders.id'
,
'='
,
'sd.stakeholder_id'
)
->
where
([
'stakeholders.card_no'
=>
$identifier
->
identifier
])
->
pluck
(
'id'
)
->
toArray
();
$stakeholder
=
Stakeholder
::
query
()
->
join
(
'stakeholder_detail
as
sd'
,
'stakeholders.id'
,
'='
,
'sd.stakeholder_id'
)
->
where
([
'stakeholders.card_no'
=>
$identifier
->
identifier
])
->
pluck
(
'
stakeholders.
id'
)
->
toArray
();
break
;
case
2
:
$stakeholder
=
Stakeholder
::
query
()
->
where
([
'type'
=>
2
,
'credit_code'
=>
$identifier
->
identifier
])
->
pluck
(
'id'
)
->
toArray
();
...
...
Please
register
or
sign in
to post a comment