|
|
@ -3047,9 +3047,7 @@ function getMarketAuthPromoteId()
|
|
|
|
|
|
|
|
|
|
|
|
function throwPromoteIdToCompanyId($p_ids)
|
|
|
|
function throwPromoteIdToCompanyId($p_ids)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// $map["id"]=["in",$p_ids];
|
|
|
|
|
|
|
|
$dbres = M("Promote","tab_")->where("id in ({$p_ids})")->field("count(*) count,company_id")->group("company_id")->select();
|
|
|
|
$dbres = M("Promote","tab_")->where("id in ({$p_ids})")->field("count(*) count,company_id")->group("company_id")->select();
|
|
|
|
// echo($dbres);
|
|
|
|
|
|
|
|
if(empty($dbres)){
|
|
|
|
if(empty($dbres)){
|
|
|
|
return -1;
|
|
|
|
return -1;
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|