更新
This commit is contained in:
parent
792b6ef647
commit
ef513bba6e
@ -53,17 +53,20 @@ class UserBill extends BaseController
|
||||
}
|
||||
|
||||
public function deposit(){
|
||||
$where = $this->request->params(['keyword', 'date']);
|
||||
$where = $this->request->params(['keyword', 'date','mer_id']);
|
||||
[$page, $limit] = $this->getPage();
|
||||
$query= Db::name('margin_order')->where('paid',1);
|
||||
if(isset($where['date'])&& $where['date']!=''){
|
||||
$a=explode(' ',$where['date']);
|
||||
$query->whereTime('birthday', 'between', [$a[0],$a[1]]);
|
||||
}
|
||||
if(isset($where['keyword'])&& $where['date']!=''){
|
||||
if(isset($where['keyword'])&& $where['keyword']!=''){
|
||||
$a=Db::name('merchant')->whereLike('mer_name',$where['mer_name'])->column('mer_id');
|
||||
$query->where('mer_id', 'in', [$a[0],$a[1]]);
|
||||
}
|
||||
if(isset($where['mer_id'])&& $where['mer_id']!=''){
|
||||
$query->where('mer_id', $where['mer_id']);
|
||||
}
|
||||
$count=$query->count();
|
||||
|
||||
$list=$query->withAttr('mer_name',function($value,$data){
|
||||
|
Loading…
x
Reference in New Issue
Block a user