|
|
|
@ -53,7 +53,7 @@ class WorkorderController extends AdminController |
|
|
|
} |
|
|
|
|
|
|
|
foreach ($workorder as $v) { |
|
|
|
$item = WorkorderItem::query()->where('workorder_id',$v->id)->orderByDesc('updated_at')->first(); |
|
|
|
$item = WorkorderItem::query()->where('workorder_id',$v->id)->orderByDesc('id')->first(); |
|
|
|
$arr = [ |
|
|
|
'workorder_id' => $v->id, |
|
|
|
'unread' => true, |
|
|
|
@ -305,7 +305,7 @@ class WorkorderController extends AdminController |
|
|
|
$item->save(); |
|
|
|
|
|
|
|
// 更新一下主表的时间做排序用
|
|
|
|
$workorder->updated_at = $item->updated_at; |
|
|
|
$workorder->updated_at = time(); |
|
|
|
$workorder->save(); |
|
|
|
|
|
|
|
// 缓存提示信息
|
|
|
|
@ -352,7 +352,7 @@ class WorkorderController extends AdminController |
|
|
|
$item->save(); |
|
|
|
|
|
|
|
// 更新一下主表的时间做排序用
|
|
|
|
$workorder->updated_at = $item->updated_at; |
|
|
|
$workorder->updated_at = time(); |
|
|
|
$workorder->save(); |
|
|
|
|
|
|
|
// 缓存提示信息
|
|
|
|
|