更新招标关联
This commit is contained in:
parent
77b4fe2ce8
commit
d0c79ab5ed
@ -133,6 +133,8 @@ class BidBiddingDecisionLogic extends BaseLogic
|
|||||||
*/
|
*/
|
||||||
public static function detail($params): array
|
public static function detail($params): array
|
||||||
{
|
{
|
||||||
return BidBiddingDecision::findOrEmpty($params['id'])->toArray();
|
$bidBiddingDecision = BidBiddingDecision::findOrEmpty($params['id']);
|
||||||
|
$bidBiddingDecision->project = $bidBiddingDecision->project;
|
||||||
|
return $bidBiddingDecision->toArray();
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -132,6 +132,8 @@ class BidBuyBiddingDocumentLogic extends BaseLogic
|
|||||||
*/
|
*/
|
||||||
public static function detail($params): array
|
public static function detail($params): array
|
||||||
{
|
{
|
||||||
return BidBuyBiddingDocument::findOrEmpty($params['id'])->toArray();
|
$bidBuyBiddingDocument = BidBuyBiddingDocument::findOrEmpty($params['id']);
|
||||||
|
$bidBuyBiddingDocument->project = $bidBuyBiddingDocument->project;
|
||||||
|
return $bidBuyBiddingDocument->toArray();
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -30,5 +30,10 @@ class BidBiddingDecision extends BaseModel
|
|||||||
protected $name = 'bid_bidding_decision';
|
protected $name = 'bid_bidding_decision';
|
||||||
protected $deleteTime = 'delete_time';
|
protected $deleteTime = 'delete_time';
|
||||||
|
|
||||||
|
public function project()
|
||||||
|
{
|
||||||
|
return $this->belongsTo(\app\common\model\project\Project::class, 'project_id');
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
@ -30,5 +30,9 @@ class BidBuyBiddingDocument extends BaseModel
|
|||||||
protected $name = 'bid_buy_bidding_document';
|
protected $name = 'bid_buy_bidding_document';
|
||||||
protected $deleteTime = 'delete_time';
|
protected $deleteTime = 'delete_time';
|
||||||
|
|
||||||
|
public function project()
|
||||||
|
{
|
||||||
|
return $this->belongsTo(\app\common\model\project\Project::class, 'project_id');
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user