|
|
@ -1611,7 +1611,15 @@ function setPowerPromoteIds(&$map, $column = 'promote_id') {
|
|
|
|
if (empty($promoteIds)) {
|
|
|
|
if (empty($promoteIds)) {
|
|
|
|
$map[$column] = -1;
|
|
|
|
$map[$column] = -1;
|
|
|
|
} elseif ($promoteIds != 'all') {
|
|
|
|
} elseif ($promoteIds != 'all') {
|
|
|
|
$map[$column] = array('in', $promoteIds);
|
|
|
|
if (isset($map[$column])) {
|
|
|
|
|
|
|
|
if (isset($map['_string'])) {//查询字段中已存在promote_id,不覆盖此条件而处理
|
|
|
|
|
|
|
|
$map['_string'] .= " and $column in($promoteIds)";
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$map['_string'] = " $column in($promoteIds)";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$map[$column] = array('in', $promoteIds);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|