...
|
...
|
@@ -113,6 +113,7 @@ class Job extends Base { |
|
|
$limit = app()->request('limit', 20, 'intval');
|
|
|
$jobId = app()->request('id', 0, 'intval');
|
|
|
$status = app()->request('status');
|
|
|
$isExport = false;
|
|
|
|
|
|
if (!$jobId) {
|
|
|
app()->e('send_job_id_null_error');
|
...
|
...
|
@@ -123,9 +124,12 @@ 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));
|
|
|
$lists = db()->all(sendJobStatusSql::detail($where, $page, $limit, $isExport));
|
|
|
|
|
|
return listsPage($lists,
|
|
|
db()->count(sendJobStatusSql::detailCount($where))
|
...
|
...
|
|