Merge branch 'feature/add_item' of wmtx/platform into release

公司绑定修正
master
郑永星 4 years ago committed by Gogs
commit 66af352eb8

@ -678,7 +678,8 @@ class AggregateRelationController extends AdminController
* @return void * @return void
*/ */
protected function getBindCompanyId($type){ protected function getBindCompanyId($type){
$dbres = M("CompanyRelation","tab_")->where("first_company_type = {$type} OR second_company_type = {$type}")->field("first_company_id,second_company_id")->select(); $dbres = M("CompanyRelation","tab_")->where("first_company_type = {$type} OR second_company_type = {$type}")->field("first_company_id,second_company_id,first_company_type,second_company_type")->select();
if(empty($dbres)){ if(empty($dbres)){
return false; return false;
}else{ }else{
@ -690,6 +691,7 @@ class AggregateRelationController extends AdminController
$sendid[] = $v['second_company_id']; $sendid[] = $v['second_company_id'];
} }
} }
return implode(",",$sendid); return implode(",",$sendid);
} }
} }

Loading…
Cancel
Save