22 lines
498 B
PHP
22 lines
498 B
PHP
<?php
|
|
|
|
namespace app\model;
|
|
|
|
class GoodsReceipt extends Base
|
|
{
|
|
protected $createTime = false;
|
|
protected $updateTime = false;
|
|
protected $name = 'goods_receipt_log';
|
|
|
|
public static function getPageList($size = 20)
|
|
{
|
|
return self::alias('rl')
|
|
->join('goods g', 'g.id = rl.goods_id')
|
|
->order('rl.id desc')
|
|
->field('rl.*, g.name as goods_name')
|
|
->paginate([
|
|
'list_rows'=> $size,
|
|
'var_page' => 'page',
|
|
]);
|
|
}
|
|
} |