Browse Source

警报 通知导出优化

master
wanghongjun 21 hours ago
parent
commit
3784a9a0ff
  1. 4
      app/Exports/AdminNoticeExport.php

4
app/Exports/AdminNoticeExport.php

@ -22,7 +22,9 @@ class AdminNoticeExport implements FromArray, WithHeadings
'space_id', 'space_id',
'msg_content' 'msg_content'
]; ];
AdminNotice::all($columns)->each( AdminNotice::query()->orderBy('id', 'desc')->limit(500)->select(
$columns
)->get()->each(
function ($item) use (&$data, &$index) { function ($item) use (&$data, &$index) {
$oldItem = (new AdminNoticeService( $oldItem = (new AdminNoticeService(
new OperationLogService() new OperationLogService()

Loading…
Cancel
Save