优化打印

master
chenzhi 4 years ago
parent 7abcd38f36
commit 96ead18ff6

@ -3024,7 +3024,7 @@ function getMarketAuthPromoteId()
//搜索所有市场部管理员id
$mid = M("AuthGroup")->where("title like '%市场%'")->getField("id",true);
$mid = implode(",",$mid);
$admin_id = M("AuthGroupAccess")->where("group_id in ({$mid})")->getField("uid",true);
$admin_id = implode(",",$admin_id);
@ -3037,7 +3037,6 @@ function getMarketAuthPromoteId()
}else{
return false;
}
// dd($map['admin_id']);
$dbres = M("Promote","tab_")->where($map)->getField("id",true);
if(empty($dbres)){
return -1;

@ -50,11 +50,9 @@ class PromoteCompanyController extends ThinkController
//市场部权限begin
$pro_id = getMarketAuthPromoteId();
// dd($pro_id);
if($pro_id){
$promotemap["_string"] .=" AND p.id in ({$pro_id})";
$c_id = throwPromoteIdToCompanyId($pro_id);
// dd($c_id);
$map["_string"] .=" AND id in ({$c_id})";
}

Loading…
Cancel
Save