账单二级收益详情
Showing
1 changed file
with
4 additions
and
4 deletions
... | @@ -29,12 +29,12 @@ class MusicianWalletService extends Service | ... | @@ -29,12 +29,12 @@ class MusicianWalletService extends Service |
29 | */ | 29 | */ |
30 | public function walletDetail() | 30 | public function walletDetail() |
31 | { | 31 | { |
32 | $app = StakeholderIncomeSyncApp::query()->where(['serial_no'=>$this->request->input('serial_no'), 'sync_status'=>1])->first(); | 32 | $app_detail = StakeholderIncomeSyncAppDetails::query()->where(['serial_no'=>$this->request->input('serial_no'), 'type'=>1])->first(); |
33 | if (empty($app)) return Response::error(ErrorCode::ORDER_NO_FOUND); | 33 | if (empty($app_detail)) return Response::error(ErrorCode::ORDER_NO_FOUND); |
34 | 34 | ||
35 | $collate = StakeholderSongCollate::query()->where([ | 35 | $collate = StakeholderSongCollate::query()->where([ |
36 | 'bills_id'=>$app->related_id, 'stakeholder_id'=>$app->stakeholder_id, 'subject_no'=>$app->subject_no | 36 | 'track_serial_no' => $app_detail->serial_no |
37 | ])->select(['song_id', 'role', 'cost_amount', 'deduct_prepaid as deduct_amount', 'real_share_amount', 'name', 'singer']) | 37 | ])->select(['role', 'cost_amount', 'deduct_prepaid', 'real_share_amount', 'name', 'singer']) |
38 | ->paginate($this->pageSize); | 38 | ->paginate($this->pageSize); |
39 | 39 | ||
40 | foreach ($collate as &$item) { | 40 | foreach ($collate as &$item) { | ... | ... |
-
Please register or sign in to post a comment