更新细节
This commit is contained in:
parent
b4afce7c10
commit
b78ec65632
@ -29,11 +29,14 @@ class AccountLogController extends BaseLikeAdminController
|
|||||||
if(!$this->request->isPost()){
|
if(!$this->request->isPost()){
|
||||||
return $this->fail('请求方式错误');
|
return $this->fail('请求方式错误');
|
||||||
}
|
}
|
||||||
$params = $this->request->post(['page_no','page_size', 'start_time', 'end_time', 'type','company_id']);
|
$params = $this->request->post(['page_no','page_size', 'start_time', 'end_time', 'user_info', 'type', 'change_type', 'company_id']);
|
||||||
$where = [];
|
$where = [];
|
||||||
if (isset($params['type']) && $params['type'] == 'um') {
|
if (isset($params['type']) && $params['type'] == 'um') {
|
||||||
$where[] = ['change_type', 'in', AccountLogEnum::getUserMoneyChangeType()];
|
$where[] = ['change_type', 'in', AccountLogEnum::getUserMoneyChangeType()];
|
||||||
}
|
}
|
||||||
|
if (!empty($params['change_type'])) {
|
||||||
|
$where[] = ['change_type', '=', $params['change_type']];
|
||||||
|
}
|
||||||
if (!empty($params['company_id'])) {
|
if (!empty($params['company_id'])) {
|
||||||
$where[] = ['company_id', '=', $params['company_id']];
|
$where[] = ['company_id', '=', $params['company_id']];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user