|
|
@ -127,7 +127,10 @@ class FinancePromoteController extends AdminController
|
|
|
|
);
|
|
|
|
);
|
|
|
|
$promotes = [];
|
|
|
|
$promotes = [];
|
|
|
|
if (count($senddata) > 0) {
|
|
|
|
if (count($senddata) > 0) {
|
|
|
|
$promotes = M('promote', 'tab_')->field(['id', 'account', 'admin_id'])->where(['id' => ['in', array_column($senddata, 'p_id')]])->select();
|
|
|
|
$promoteIds = array_column($senddata, 'p_id');
|
|
|
|
|
|
|
|
if ($promoteIds) {
|
|
|
|
|
|
|
|
$promotes = M('promote', 'tab_')->field(['id', 'account', 'admin_id'])->where(['id' => ['in', $promoteIds]])->select();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$promotes = index_by_column('id', $promotes);
|
|
|
|
$promotes = index_by_column('id', $promotes);
|
|
|
|
$adminUsernames = getAdminUsernameList(array_column($promotes, 'admin_id'));
|
|
|
|
$adminUsernames = getAdminUsernameList(array_column($promotes, 'admin_id'));
|
|
|
@ -355,7 +358,10 @@ class FinancePromoteController extends AdminController
|
|
|
|
|
|
|
|
|
|
|
|
$promotes = [];
|
|
|
|
$promotes = [];
|
|
|
|
if (count($senddata) > 0) {
|
|
|
|
if (count($senddata) > 0) {
|
|
|
|
$promotes = M('promote', 'tab_')->field(['id', 'account', 'admin_id'])->where(['id' => ['in', array_column($senddata, 'promote_id')]])->select();
|
|
|
|
$promoteIds = array_column($senddata, 'promote_id');
|
|
|
|
|
|
|
|
if (count($promoteIds)) {
|
|
|
|
|
|
|
|
$promotes = M('promote', 'tab_')->field(['id', 'account', 'admin_id'])->where(['id' => ['in', $promoteIds]])->select();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$promotes = index_by_column('id', $promotes);
|
|
|
|
$promotes = index_by_column('id', $promotes);
|
|
|
|
$adminUsernames = getAdminUsernameList(array_column($promotes, 'admin_id'));
|
|
|
|
$adminUsernames = getAdminUsernameList(array_column($promotes, 'admin_id'));
|
|
|
@ -507,7 +513,10 @@ class FinancePromoteController extends AdminController
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$promotes = [];
|
|
|
|
$promotes = [];
|
|
|
|
if (count($data) > 0) {
|
|
|
|
if (count($data) > 0) {
|
|
|
|
$promotes = M('promote', 'tab_')->field(['id', 'account', 'admin_id'])->where(['id' => ['in', array_column($data, 'p_id')]])->select();
|
|
|
|
$promoteIds = array_column($data, 'p_id');
|
|
|
|
|
|
|
|
if (count($promoteIds) > 0) {
|
|
|
|
|
|
|
|
$promotes = M('promote', 'tab_')->field(['id', 'account', 'admin_id'])->where(['id' => ['in', $promoteIds]])->select();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$promotes = index_by_column('id', $promotes);
|
|
|
|
$promotes = index_by_column('id', $promotes);
|
|
|
|
$adminUsernames = getAdminUsernameList(array_column($promotes, 'admin_id'));
|
|
|
|
$adminUsernames = getAdminUsernameList(array_column($promotes, 'admin_id'));
|
|
|
|