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
c9a81f50
...
c9a81f5016c337b9a2f0d1b33a6a751c143da45a
authored
2021-08-23 12:20:04 +0800
by
lemon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
*
1 parent
b99073a8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
app/Models/Legal/StakeholderIncomeByPayer.php
app/Services/MusicianWithdrawService.php
app/Models/Legal/StakeholderIncomeByPayer.php
View file @
c9a81f5
...
...
@@ -2,6 +2,7 @@
namespace
App\Models\Legal
;
use
App\Models\BaseModel
;
use
Illuminate\Database\Eloquent\Factories\HasFactory
;
use
Illuminate\Database\Eloquent\Model
;
...
...
@@ -10,7 +11,7 @@ use Illuminate\Database\Eloquent\Model;
* Class StakeholderIncomeByPayer
* @package App\Models\Legal
*/
class
StakeholderIncomeByPayer
extends
Model
class
StakeholderIncomeByPayer
extends
Base
Model
{
use
HasFactory
;
...
...
app/Services/MusicianWithdrawService.php
View file @
c9a81f5
...
...
@@ -20,7 +20,7 @@ class MusicianWithdrawService extends Service
$receipt
=
[];
StakeholderIncomeByPayer
::
query
()
->
with
(
'company:company_id,receipt_name,receipt_no,receipt_tel,receipt_address,receipt_bank,receipt_bank_no'
)
->
whereIn
(
'serial_no'
,
$this
->
request
->
input
(
'serial_no'
)
)
->
get
()
->
map
(
function
(
$item
)
use
(
&
$receipt
)
{
->
identify
()
->
whereIn
(
'serial_no'
,
$this
->
request
->
input
(
'serial_no'
))
->
select
([
'id'
,
'company_id'
]
)
->
get
()
->
map
(
function
(
$item
)
use
(
&
$receipt
)
{
if
(
!
empty
(
$item
->
company
))
{
$receipt
[
$item
->
company_id
]
=
[
...
...
@@ -59,7 +59,7 @@ class MusicianWithdrawService extends Service
break
;
}
if
(
StakeholderIncomeByPayer
::
query
()
->
where
(
'sync_status'
,
1
)
->
whereIn
(
'serial_no'
,
$this
->
request
->
input
(
'serial_no'
))
->
update
([
if
(
StakeholderIncomeByPayer
::
query
()
->
where
(
'sync_status'
,
1
)
->
identify
()
->
whereIn
(
'serial_no'
,
$this
->
request
->
input
(
'serial_no'
))
->
update
([
'withdraw_status'
=>
$withdraw_status
,
]))
{
return
Response
::
success
();
...
...
Please
register
or
sign in
to post a comment