generated from liutk/owl-admin-base
Update
parent
17e80b0d43
commit
64ad8614a8
|
|
@ -48,4 +48,20 @@ class WorkflowCheck extends Model
|
|||
{
|
||||
return $this->hasMany(WorkflowLog::class, 'check_id');
|
||||
}
|
||||
|
||||
/**
|
||||
* 是否审核通过
|
||||
*/
|
||||
public function isCheckSuccess(): bool
|
||||
{
|
||||
return $this->check_status === CheckStatus::Success;
|
||||
}
|
||||
|
||||
/**
|
||||
* 是否审核未通过
|
||||
*/
|
||||
public function isCheckFailed(): bool
|
||||
{
|
||||
return $this->check_status === CheckStatus::Fail;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -75,15 +75,15 @@ trait HasCheckable
|
|||
*/
|
||||
public function isCheckSuccess(): bool
|
||||
{
|
||||
return $this->workflow->check_status === CheckStatus::Success;
|
||||
return $this->workflow->isCheckSuccess();
|
||||
}
|
||||
|
||||
/**
|
||||
* 是否审核未通过
|
||||
*/
|
||||
public function isCheckFail(): bool
|
||||
public function isCheckFailed(): bool
|
||||
{
|
||||
return $this->workflow->check_status === CheckStatus::Fail;
|
||||
return $this->workflow->isCheckFailed();
|
||||
}
|
||||
|
||||
public function canUpdate(): bool
|
||||
|
|
|
|||
Loading…
Reference in New Issue