|
@@ -59,11 +59,12 @@ class UserBill extends BaseModel
|
|
* @throws \think\db\exception\ModelNotFoundException
|
|
* @throws \think\db\exception\ModelNotFoundException
|
|
* @throws \think\exception\DbException
|
|
* @throws \think\exception\DbException
|
|
*/
|
|
*/
|
|
- public static function userBillList($uid, $page, $limit, $category = 'integral')
|
|
+ public static function userBillList($uid, $page, $limit, $category = 'integral', $pm = '')
|
|
{
|
|
{
|
|
if ($page) {
|
|
if ($page) {
|
|
$list = self::where('uid', $uid)
|
|
$list = self::where('uid', $uid)
|
|
->where('category', $category)
|
|
->where('category', $category)
|
|
|
|
+ ->where('pm', $pm)
|
|
->field('mark,pm,number,add_time')
|
|
->field('mark,pm,number,add_time')
|
|
->where('status', 1)
|
|
->where('status', 1)
|
|
->order('add_time DESC')
|
|
->order('add_time DESC')
|
|
@@ -72,6 +73,7 @@ class UserBill extends BaseModel
|
|
} else {
|
|
} else {
|
|
$list = self::where('uid', $uid)
|
|
$list = self::where('uid', $uid)
|
|
->where('category', $category)
|
|
->where('category', $category)
|
|
|
|
+ ->where('pm', $pm)
|
|
->field('mark,pm,number,add_time')
|
|
->field('mark,pm,number,add_time')
|
|
->where('status', 1)
|
|
->where('status', 1)
|
|
->order('add_time DESC')
|
|
->order('add_time DESC')
|