master
ELF 3 years ago
parent 48dc7892dc
commit 4e537c34a8

@ -52,6 +52,9 @@ class GameRebateController extends ThinkController
$baseGameId = $params['base_game_id'] ?? 0;
$isExport = $params['is_export'] == 1;
if ($params['reviewer_id'] > 0) {
$params['review_type'] = 0;
}
$service = new GameRebateService();
[$records, $count] = $service->listQuery($params, $awardType);

@ -177,6 +177,7 @@ class GameRebateService
$reviewStatus = $params['review_status'] ?? -1;
$sendStatus = $params['send_status'] ?? -1;
$reviewerId = $params['reviewer_id'] ?? 0;
$reviewType = $params['review_type'] ?? -1;
$where = [
'_string' => '1=1',
@ -203,6 +204,9 @@ class GameRebateService
if ($reviewerId != 0) {
$where['reviewer_id'] = $reviewerId;
}
if ($reviewType != -1) {
$where['review_type'] = $reviewType;
}
if (I('send_time_start', '') != '') {
$where['_string'] .= ' and send_time>=' . strtotime(I('send_time_start') . ' 00:00:00');

Loading…
Cancel
Save