WokerTask/app/api/controller/CompanyAccountLogController...

19 lines
675 B
PHP

<?php
namespace app\api\controller;
use app\common\model\company\CompanyAccountLog;
class CompanyAccountLogController extends BaseApiController{
public function lists(){
[$page,$limit]=$this->getPage();
$where=[];
$where['company_id']=$this->userInfo['company_id'];
$where['change_object']=CompanyAccountLog::SHAREHOLDER;
// $where['change_type']=CompanyAccountLog::TASK_INC_SHAREHOLDER_MONEY;
$count=CompanyAccountLog::where($where)->count();
$lists=CompanyAccountLog::where($where)->page($page,$limit)->order('id','desc')->select();
return $this->success('ok',['count'=>$count,'list'=>$lists]);
}
}