Merge pull request '优化所属会长判断' (#154) from feature/testing_daily_count into release

优化所属会长判断
master
陈志 4 years ago
commit 9b3b982df7

@ -236,7 +236,11 @@ class TestingResourceRepository
$promotes = $result['promotes'];
$verifyAdmins = $result['verifyAdmins'];
$applyAdmins = $result['applyAdmins'];
$levelTopPromotes = M('promote', 'tab_')->where(['id' => ['in', array_unique(array_column($promotes,'level1_id'))]])->getField('id,account',true);
if(!empty($promotes)){
$levelTopPromotes = M('promote', 'tab_')->where(['id' => ['in', array_unique(array_column($promotes,'level1_id'))]])->getField('id,account',true);
}else{
$levelTopPromotes = [];
}
//获取申请人
$records = [];
foreach ($items as $batch) {

Loading…
Cancel
Save