From 91b6171966a1df914b44226ec80cfb0f712245cf Mon Sep 17 00:00:00 2001 From: weiz <736250432@qq.com> Date: Tue, 27 Feb 2024 11:29:57 +0800 Subject: [PATCH] update --- .../SupervisionSpecialOperationPersonnelLogic.php | 2 +- .../SupervisionSpecialOperationPersonnel.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/adminapi/logic/supervision_qualification_review/SupervisionSpecialOperationPersonnelLogic.php b/app/adminapi/logic/supervision_qualification_review/SupervisionSpecialOperationPersonnelLogic.php index 401794f6c..3042839ff 100644 --- a/app/adminapi/logic/supervision_qualification_review/SupervisionSpecialOperationPersonnelLogic.php +++ b/app/adminapi/logic/supervision_qualification_review/SupervisionSpecialOperationPersonnelLogic.php @@ -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'], diff --git a/app/common/model/supervision_qualification_review/SupervisionSpecialOperationPersonnel.php b/app/common/model/supervision_qualification_review/SupervisionSpecialOperationPersonnel.php index c99c5672b..9bad85b0d 100644 --- a/app/common/model/supervision_qualification_review/SupervisionSpecialOperationPersonnel.php +++ b/app/common/model/supervision_qualification_review/SupervisionSpecialOperationPersonnel.php @@ -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){