Commit c78919f7 c78919f77fce5d00a0dc39615016573d3efbc091 by lemon

*

1 parent 6c3bef01
...@@ -34,7 +34,7 @@ class MusicianWalletDetailRequest extends FormRequest ...@@ -34,7 +34,7 @@ class MusicianWalletDetailRequest extends FormRequest
34 public function messages(): array 34 public function messages(): array
35 { 35 {
36 return [ 36 return [
37 'serial_no.required' => '请提供业务流水号', 37 'serial_no.required' => '请提供版权账单账单流水号',
38 ]; 38 ];
39 } 39 }
40 } 40 }
......
...@@ -29,12 +29,13 @@ class MusicianWithdrawService extends Service ...@@ -29,12 +29,13 @@ class MusicianWithdrawService extends Service
29 */ 29 */
30 public function walletDetail() 30 public function walletDetail()
31 { 31 {
32 $income_by_payer = StakeholderIncomeSyncAppDetails::query()->where(['serial_no'=>$this->request->input('serial_no'), 'sync_status'=>1])->first(); 32 $app = StakeholderIncomeSyncApp::query()->where(['serial_no'=>$this->request->input('serial_no'), 'sync_status'=>1])->first();
33 if (empty($income_by_payer)) return Response::error(ErrorCode::ORDER_NO_FOUND); 33 if (empty($app)) return Response::error(ErrorCode::ORDER_NO_FOUND);
34 34
35 $collate = StakeholderSongCollate::query()->with('song:id,name,singer')->where([ 35 $collate = StakeholderSongCollate::query()->where([
36 'bills_id'=>$income_by_payer->related_id, 'subject_no'=>$income_by_payer->subject_no]) 36 'bills_id'=>$app->related_id, 'stakeholder_id'=>$app->stakeholder_id, 'subject_no'=>$app->subject_no
37 ->select(['song_id', 'role', 'cost_amount', 'deduct_amount', 'real_share_amount'])->paginate($this->pageSize); 37 ])->select(['song_id', 'role', 'cost_amount', 'deduct_prepaid as deduct_amount', 'real_share_amount', 'name', 'singer'])
38 ->paginate($this->pageSize);
38 39
39 foreach ($collate as &$item) { 40 foreach ($collate as &$item) {
40 $item->setAttribute('role', Contract::transformRole($item->role)); 41 $item->setAttribute('role', Contract::transformRole($item->role));
......