|
@@ -59,13 +59,14 @@ class UserBill extends BaseModel
|
|
|
* @throws \think\db\exception\ModelNotFoundException
|
|
|
* @throws \think\exception\DbException
|
|
|
*/
|
|
|
- public static function userBillList($uid, $page, $limit, $category = 'integral')
|
|
|
+ public static function userBillList($uid, $page, $limit, $category = 'integral', $where = [])
|
|
|
{
|
|
|
if ($page) {
|
|
|
$list = self::where('uid', $uid)
|
|
|
->where('category', $category)
|
|
|
->field('mark,pm,number,add_time')
|
|
|
->where('status', 1)
|
|
|
+ ->where($where)
|
|
|
->order('add_time DESC')
|
|
|
->page((int)$page, (int)$limit)
|
|
|
->select();
|
|
@@ -74,6 +75,7 @@ class UserBill extends BaseModel
|
|
|
->where('category', $category)
|
|
|
->field('mark,pm,number,add_time')
|
|
|
->where('status', 1)
|
|
|
+ ->where($where)
|
|
|
->order('add_time DESC')
|
|
|
->select();
|
|
|
}
|