|
@@ -24,11 +24,20 @@ class Job extends Base { |
|
@@ -24,11 +24,20 @@ class Job extends Base { |
24
|
*/
|
24
|
*/
|
25
|
public function index(){
|
25
|
public function index(){
|
26
|
|
26
|
|
27
|
- $lists = db()->all(sendJobsSql::all(dbWhere([
|
27
|
+ $page = app()->request('page',1,'intval');
|
|
|
28
|
+ $limit = app()->request('limit',20,'intval');
|
|
|
29
|
+
|
|
|
30
|
+ $where = dbWhere([
|
28
|
'email_id' => $this->getEmails('id')
|
31
|
'email_id' => $this->getEmails('id')
|
29
|
- ])));
|
32
|
+ ]);
|
|
|
33
|
+
|
|
|
34
|
+ $lists = db()->all(sendJobsSql::all($where,$page,$limit));
|
|
|
35
|
+
|
|
|
36
|
+
|
30
|
|
37
|
|
31
|
- return $lists;
|
38
|
+ return listsPage($lists,
|
|
|
39
|
+ db()->count(sendJobsSql::count($where))
|
|
|
40
|
+ ,1,20);
|
32
|
}
|
41
|
}
|
33
|
|
42
|
|
34
|
|
43
|
|