Merge pull request 'update' (#149) from zhangwei into dev

Reviewed-on: #149
This commit is contained in:
weiz 2024-01-11 09:32:42 +08:00
commit 6606ad9493

View File

@ -34,5 +34,10 @@ class FinancePaymentPlan extends BaseModel
{
return $this->belongsTo(\app\common\model\contract\ProcurementContract::class, 'contract_id');
}
public function getPayDateAttr($value): string
{
return !empty($value) ? date('Y-m-d') : '';
}
}