owners_902_2

This commit is contained in:
dengbw
2022-09-02 17:38:22 +08:00
parent adea94484a
commit 793ccc968c
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -174,7 +174,7 @@ class Owners extends HD_Controller
'car_num' => $val['car_num'],
'order_time' => $val['order_time'] != '0000-00-00 00:00:00' ? $val['order_time'] : '',
'ck_time' => $val['ck_time'] != '0000-00-00 00:00:00' ? $val['ck_time'] : '',
'u_time' => $val['u_time'],
'u_time' => $val['u_time'] != '0000-00-00 00:00:00' ? $val['u_time'] : '',
'status_name' => $statusAry[$val['status']]
];
}
+2
View File
@@ -234,9 +234,11 @@ class Liche extends HD_Controller
}
$re = $this->mdOwners->get(['o_id' => $value['id']]);
if ($re) {
$data['u_time'] = $re['u_time'];
$this->mdOwners->update($data, ['id' => $re['id']]);
} else {
$data['c_time'] = time();
$data['u_time'] = '0000-00-00 00:00:00';
$id = $this->mdOwners->add($data);
if ($id && $params['rds']) {
$log[] = ['id' => $id, 'name' => $data['name'], 'mobile' => $data['mobile']];