update
This commit is contained in:
parent
1e86fae201
commit
91b6171966
app
adminapi/logic/supervision_qualification_review
common/model/supervision_qualification_review
@ -82,7 +82,7 @@ class SupervisionSpecialOperationPersonnelLogic extends BaseLogic
|
|||||||
'name' => $params['name'],
|
'name' => $params['name'],
|
||||||
'work_type' => $params['work_type'],
|
'work_type' => $params['work_type'],
|
||||||
'id_card' => $params['id_card'],
|
'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,
|
'enter_time' => !empty($params['enter_time']) ? strtotime($params['enter_time']) : 0,
|
||||||
'leave_time' => !empty($params['leave_time']) ? strtotime($params['leave_time']) : 0,
|
'leave_time' => !empty($params['leave_time']) ? strtotime($params['leave_time']) : 0,
|
||||||
'status' => $params['status'],
|
'status' => $params['status'],
|
||||||
|
@ -42,7 +42,7 @@ class SupervisionSpecialOperationPersonnel extends BaseModel
|
|||||||
|
|
||||||
public function getValidityPeriodAttr($value): string
|
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){
|
public function getStatusTextAttr($value,$data){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user