|
|
@@ -627,7 +627,7 @@ class ServiceWorkLogic extends BaseLogic
|
|
|
public static function getAppointmentNotice($userId)
|
|
|
{
|
|
|
return ServiceWork::where(['master_worker_id'=>$userId,'appoint_approval'=>1])
|
|
|
- ->field(['id', 'work_sn','real_name','mobile', 'address','work_status', 'title', 'appointment_time','work_status'])
|
|
|
+ ->field(['id', 'work_sn','real_name','mobile', 'address', 'title', 'appointment_time','work_status'])
|
|
|
->order(['appointment_time' => 'asc'])//上门时间排序
|
|
|
->select()->each(function (&$item){
|
|
|
$item['last_appointment_time'] = date('Y-m-d H:i:s',ServiceWorkAppointmentLog::where('work_id',$item['id'])->order('id desc')->value('last_appointment_time'));
|