This commit is contained in:
weiz 2024-02-27 11:29:57 +08:00
parent 1e86fae201
commit 91b6171966
2 changed files with 2 additions and 2 deletions

View File

@ -82,7 +82,7 @@ class SupervisionSpecialOperationPersonnelLogic extends BaseLogic
'name' => $params['name'],
'work_type' => $params['work_type'],
'id_card' => $params['id_card'],
'validity_period' => $params['validity_period'],
'validity_period' => !empty($params['validity_period']) ? strtotime($params['validity_period']) : 0,
'enter_time' => !empty($params['enter_time']) ? strtotime($params['enter_time']) : 0,
'leave_time' => !empty($params['leave_time']) ? strtotime($params['leave_time']) : 0,
'status' => $params['status'],

View File

@ -42,7 +42,7 @@ class SupervisionSpecialOperationPersonnel extends BaseModel
public function getValidityPeriodAttr($value): string
{
return !empty($value) ? date('Y-m-d H:i:s', $value) : '';
return !empty($value) ? date('Y-m-d', $value) : '';
}
public function getStatusTextAttr($value,$data){