...
|
...
|
@@ -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');
|
...
|
...
|
@@ -120,12 +121,15 @@ class Job extends Base { |
|
|
$whereArray = [
|
|
|
'job_id' => $jobId
|
|
|
];
|
|
|
if ($status || $status === 0) {
|
|
|
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))
|
...
|
...
|
|