|
|
@ -245,6 +245,9 @@ class PromoteController extends ThinkController
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$company_belong = $_REQUEST['company_belong'] ?? 0;
|
|
|
|
$company_belong = $_REQUEST['company_belong'] ?? 0;
|
|
|
|
$company_relation = $_REQUEST['company_relation'] ?? 0;
|
|
|
|
$company_relation = $_REQUEST['company_relation'] ?? 0;
|
|
|
|
|
|
|
|
if($company_id && $company_id > 0){
|
|
|
|
|
|
|
|
$company_belong = M("PromoteCompany","tab_")->field("company_belong")->where("id = {$company_id}")->find()['company_belong'];
|
|
|
|
|
|
|
|
}
|
|
|
|
$data = array(
|
|
|
|
$data = array(
|
|
|
|
'account'=>$account,
|
|
|
|
'account'=>$account,
|
|
|
|
'password'=>$password,
|
|
|
|
'password'=>$password,
|
|
|
@ -1309,9 +1312,10 @@ class PromoteController extends ThinkController
|
|
|
|
//为数据权限添加
|
|
|
|
//为数据权限添加
|
|
|
|
setPowerPromoteIds($map, 'pb.promote_id');
|
|
|
|
setPowerPromoteIds($map, 'pb.promote_id');
|
|
|
|
$model = M('promote_belong', 'tab_');
|
|
|
|
$model = M('promote_belong', 'tab_');
|
|
|
|
|
|
|
|
$default_company = C('DEFAULT_COMPANY');
|
|
|
|
$field = "
|
|
|
|
$field = "
|
|
|
|
pb.id,pb.promote_id,pb.verify_status,pb.company_relation,pb.remark,pb.can_view_recharge,pb.approver_name,pb.applicant_name,pb.verify_time,pb.applicant_time,pb.company_type,
|
|
|
|
pb.id,pb.promote_id,pb.verify_status,pb.company_relation,pb.remark,pb.can_view_recharge,pb.approver_name,pb.applicant_name,pb.verify_time,pb.applicant_time,pb.company_type,
|
|
|
|
pc.company_name,
|
|
|
|
IFNULL(pc.company_name,'{$default_company}') company_name,
|
|
|
|
p.company_belong,p.account,p.mobile_phone,p.admin_id,p.ver_status,p.status,p.create_time
|
|
|
|
p.company_belong,p.account,p.mobile_phone,p.admin_id,p.ver_status,p.status,p.create_time
|
|
|
|
";
|
|
|
|
";
|
|
|
|
$list_data = $model->alias('pb')
|
|
|
|
$list_data = $model->alias('pb')
|
|
|
|