最新版本

This commit is contained in:
2026-05-26 09:44:21 +08:00
parent 822ed9a099
commit fa41edf857
24 changed files with 597 additions and 163 deletions

View File

@@ -0,0 +1,20 @@
<?php
namespace app\admin\service;
use app\common\model\Tickets;
class UtillService
{
/* 获取需要导出的数据 */
public function getExportData($range)
{
$list = Tickets::with(['ticketStaff', 'ticketOperator'])->whereTime('lock_time', $range)->select();
foreach ($list as $item) {
$item->visible(['id', 'website', 'datanum', 'remark', 'create_time', 'lock_time']);
$item->append(['username', 'operator_name'])->hidden(['ticketStaff', 'ticketOperator']);
}
return $list;
}
}