更新提现记录接口,增加提现来源,区分小组采购、分销推广记录
This commit is contained in:
parent
22dbe366df
commit
c86a48d74f
@ -44,6 +44,8 @@ class UserExtractDao extends BaseDao
|
|||||||
$query->where('UserExtract.real_name','%'.$where['real_name'].'%');
|
$query->where('UserExtract.real_name','%'.$where['real_name'].'%');
|
||||||
})->when(isset($where['date']) && $where['date'] != '',function($query)use($where){
|
})->when(isset($where['date']) && $where['date'] != '',function($query)use($where){
|
||||||
getModelTime($query, $where['date']);
|
getModelTime($query, $where['date']);
|
||||||
|
})->when(isset($where['source']) && $where['source'] != '',function($query)use($where){
|
||||||
|
$query->where('UserExtract.source',$where['source']);
|
||||||
})->order('UserExtract.create_time DESC');
|
})->order('UserExtract.create_time DESC');
|
||||||
|
|
||||||
return $query;
|
return $query;
|
||||||
|
@ -39,7 +39,7 @@ class UserExtract extends BaseController
|
|||||||
public function lst()
|
public function lst()
|
||||||
{
|
{
|
||||||
[$page,$limit] = $this->getPage();
|
[$page,$limit] = $this->getPage();
|
||||||
$where = $this->request->params(['status']);
|
$where = $this->request->params(['status', 'source']);
|
||||||
$where['uid'] = $this->request->uid();
|
$where['uid'] = $this->request->uid();
|
||||||
return app('json')->success($this->repository->getList($where,$page,$limit));
|
return app('json')->success($this->repository->getList($where,$page,$limit));
|
||||||
}
|
}
|
||||||
|
@ -26,6 +26,7 @@ class UserExtractValidate extends Validate
|
|||||||
'extract_type|收款方式' => 'require',
|
'extract_type|收款方式' => 'require',
|
||||||
'extract_price|提现金额' => 'require|gt:0',
|
'extract_price|提现金额' => 'require|gt:0',
|
||||||
'alipay_code|支付宝账户' => 'requireIf:extract_type,2',
|
'alipay_code|支付宝账户' => 'requireIf:extract_type,2',
|
||||||
|
'source|提现来源' => 'require|in:1,2',
|
||||||
];
|
];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user