|
|
@@ -44,7 +44,8 @@ class PickUpRepository extends BaseRepository
|
|
44
|
44
|
->order('id', 'desc')
|
|
45
|
45
|
->select()
|
|
46
|
46
|
->toArray();
|
|
47
|
|
- return $list;
|
|
|
47
|
+ $count = $query->count();
|
|
|
48
|
+ return ['list' => $list, 'count' => $count];
|
|
48
|
49
|
}
|
|
49
|
50
|
|
|
50
|
51
|
public function add($params)
|
|
|
@@ -57,8 +58,8 @@ class PickUpRepository extends BaseRepository
|
|
57
|
58
|
return $this->dao->get($id);
|
|
58
|
59
|
}
|
|
59
|
60
|
|
|
60
|
|
- public function update($id,$params)
|
|
|
61
|
+ public function update($id, $params)
|
|
61
|
62
|
{
|
|
62
|
|
- return $this->dao->update($id,$params);
|
|
|
63
|
+ return $this->dao->update($id, $params);
|
|
63
|
64
|
}
|
|
64
|
65
|
}
|