|
|
@ -1920,8 +1920,8 @@ class QueryController extends BaseController
|
|
|
|
$userAccount = I('user_account', '');
|
|
|
|
$userAccount = I('user_account', '');
|
|
|
|
$promoteId = I('promote_id', 0);
|
|
|
|
$promoteId = I('promote_id', 0);
|
|
|
|
$sdkVersion = I('sdk_version', 0);
|
|
|
|
$sdkVersion = I('sdk_version', 0);
|
|
|
|
$costBegin = I('cost_begin', 0);
|
|
|
|
$costBegin = I('cost_begin', '');
|
|
|
|
$costEnd = I('cost_end', 0);
|
|
|
|
$costEnd = I('cost_end', '');
|
|
|
|
$headmanPromoteId = I('headman_promote_id', 0);
|
|
|
|
$headmanPromoteId = I('headman_promote_id', 0);
|
|
|
|
|
|
|
|
|
|
|
|
$promote = $this->getLoginPromote();
|
|
|
|
$promote = $this->getLoginPromote();
|
|
|
@ -1985,13 +1985,13 @@ class QueryController extends BaseController
|
|
|
|
$spendMap['promote_id'] = $promoteId;
|
|
|
|
$spendMap['promote_id'] = $promoteId;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if ($costBegin > 0 || $costEnd > 0) {
|
|
|
|
if ($costBegin != '' || $costEnd != '') {
|
|
|
|
$having = '';
|
|
|
|
$having = '';
|
|
|
|
if ($costBegin > 0 && $costEnd > 0) {
|
|
|
|
if ($costBegin != '' && $costEnd != '') {
|
|
|
|
$having = 'sum(cost) between ' . $costBegin . ' and ' . $costEnd;
|
|
|
|
$having = 'sum(cost) between ' . $costBegin . ' and ' . $costEnd;
|
|
|
|
} elseif ($costBegin > 0 && $costEnd == 0) {
|
|
|
|
} elseif ($costBegin != '' && $costEnd == '') {
|
|
|
|
$having = 'sum(cost) > ' . $costBegin;
|
|
|
|
$having = 'sum(cost) > ' . $costBegin;
|
|
|
|
} elseif ($costBegin == 0 && $costEnd > 0) {
|
|
|
|
} elseif ($costBegin == '' && $costEnd != '') {
|
|
|
|
$having = 'sum(cost) < ' . $costEnd;
|
|
|
|
$having = 'sum(cost) < ' . $costEnd;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$subMap = $map;
|
|
|
|
$subMap = $map;
|
|
|
|