作者 朱世亮

发件任务详情优化查询

... ... @@ -113,7 +113,7 @@ class Job extends Base {
$limit = app()->request('limit', 20, 'intval');
$jobId = app()->request('id', 0, 'intval');
$status = app()->request('status');
$isExport = false;
$isExport = app()->request('is_export', 0);
if (!$jobId) {
app()->e('send_job_id_null_error');
... ... @@ -124,9 +124,6 @@ class Job extends Base {
if ($status || $status === '0') {
$whereArray['status'] = $status;
}
if (app()->request('is_export', 0)) {
$isExport = true;
}
$where = dbWhere($whereArray);
$lists = db()->all(sendJobStatusSql::detail($where, $page, $limit, $isExport));
... ...