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
1aac1163
...
1aac11632d6e7c9e84e3c0ac223ca8106107fb18
authored
2022-04-18 16:55:03 +0800
by
lemon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
*
1 parent
6d86a205
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
app/Console/Commands/StakeholderIncomeSyncCommand.php
app/Console/Commands/StakeholderIncomeSyncCommand.php
View file @
1aac116
...
...
@@ -9,6 +9,7 @@ use App\Models\Legal\Company;
use
App\Models\Legal\StakeholderIncomeSyncApp
;
use
App\Models\Legal\StakeholderIncomeSyncAppDetails
;
use
App\Models\Legal\StakeholderIncomeSyncAppLogs
;
use
App\Models\Legal\Subject
;
use
App\Services\ApiService
;
use
Illuminate\Console\Command
;
use
Illuminate\Support\Facades\DB
;
...
...
@@ -190,8 +191,7 @@ class StakeholderIncomeSyncCommand extends Command
*/
private
function
formatHttpBody
(
$income
,
$income_detail
)
{
$company
=
Company
::
query
()
->
find
(
$income
->
company_id
);
$subject
=
Subject
::
query
()
->
where
([
'company_id'
=>
$income
->
company_id
,
'no'
=>
$income
->
subject_no
])
->
first
();
$bills
=
Bills
::
query
()
->
find
(
$income
->
related_id
);
$body
=
[
...
...
@@ -204,7 +204,7 @@ class StakeholderIncomeSyncCommand extends Command
'totalMoney'
=>
$income
->
total_money
,
'type'
=>
self
::
TYPE_BILLS
,
'title'
=>
$this
->
billsTitle
(
$bills
),
//账单标题
'paymentCompany'
=>
$
company
->
receipt_name
,
//付款公司营业执照全称
'paymentCompany'
=>
$
subject
->
receipt_name
,
//付款公司营业执照全称
'addLevelTwoIncomeRequests'
=>
[],
];
...
...
@@ -215,7 +215,7 @@ class StakeholderIncomeSyncCommand extends Command
'faxMoney'
=>
$item
->
fax_money
,
'money'
=>
$item
->
money
,
'totalMoney'
=>
$item
->
total_money
,
'paymentCompany'
=>
$
company
->
receipt_name
,
//付款公司营业执照全称
'paymentCompany'
=>
$
subject
->
receipt_name
,
//付款公司营业执照全称
'songNum'
=>
$item
->
song_num
,
'title'
=>
$this
->
billsSubTitle
(
$item
->
month
),
'type'
=>
self
::
TYPE_BILLS
,
...
...
Please
register
or
sign in
to post a comment