Merge branch 'feature/version_1028' of wmtx/platform into release

修改数据汇总bug
master
廖金灵 4 years ago committed by Gogs
commit 710573f511

@ -2280,15 +2280,15 @@ class DownloadController extends BaseController {
$rs = M('promote','tab_')->where($map1)->field('id,account,nickname')->select(); $rs = M('promote','tab_')->where($map1)->field('id,account,nickname')->select();
$childPromoteIds = ''; $childPromoteIds = '';
if(empty($rs)) { if(empty($rs)) {
$map['tab_user.promote_id'] = PID; $map['tab_apply.promote_id'] = PID;
}else { }else {
foreach ($rs as $rsKey => $rsValue) { foreach ($rs as $rsKey => $rsValue) {
$id = $rsValue['id']; $id = $rsValue['id'];
$childPromoteIds .= $id.','; $childPromoteIds .= $id.',';
} }
$childPromoteIds = rtrim($childPromoteIds, ','); $childPromoteIds = rtrim($childPromoteIds, ',');
$childPromoteIds .= ',' . PID; $childPromoteIds .= ',' . PID;
$map['tab_apply.promote_id'] = ['in', $childPromoteIds]; $map['tab_apply.promote_id'] = ['in', $childPromoteIds];
} }
$levelPromote = $this->getLevelPromote(); $levelPromote = $this->getLevelPromote();
$queryPromote = $this->getQueryPromote($levelPromote); $queryPromote = $this->getQueryPromote($levelPromote);

Loading…
Cancel
Save