|
|
|
@ -2426,12 +2426,19 @@ public function iosDetailExcelInfo($id,$map) {
|
|
|
|
|
$data = M('promote', 'tab_')->field(['id'])->where($map1)
|
|
|
|
|
->limit(($i-1)*$perSize ,$perSize)->select();
|
|
|
|
|
$ids = array_column($data, 'id');
|
|
|
|
|
|
|
|
|
|
if (in_array($map['localId'], $ids)) {
|
|
|
|
|
}else {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
if ($i == 1) {
|
|
|
|
|
if (!empty($map['localId'])) {
|
|
|
|
|
if (!empty($map['localId']) && !in_array($map['localId'], $ids)) {
|
|
|
|
|
array_unshift($ids,$map['localId'] );
|
|
|
|
|
}
|
|
|
|
|
if (!in_array(PID, $ids)) {
|
|
|
|
|
array_unshift($ids, PID);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
array_unshift($ids, PID);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
foreach($ids as $key => $id) {
|
|
|
|
|