You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
502 B
22 lines
502 B
2 months ago
|
<?php
|
||
|
|
||
|
namespace app\model;
|
||
|
|
||
|
class UserLoanModel extends BaseModel
|
||
|
{
|
||
|
protected $name = 'user_loan';
|
||
|
public static function getUserLoanList($data):array
|
||
|
{
|
||
|
$count= self::where($data['where'])->count();
|
||
|
$list = self::where($data['where'])->page($data['page'],$data['size'])->select();
|
||
|
if(empty($list)){
|
||
|
return [];
|
||
|
}else{
|
||
|
return [
|
||
|
'total'=>$count,
|
||
|
'list'=>$list->toArray()
|
||
|
];
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|