推广员现在归属于公司团体

master
chenzhi 5 years ago
parent dd86a85485
commit d7662eb305

@ -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')

@ -424,7 +424,7 @@ class PromoteModel extends Model{
$parseData = array(); $parseData = array();
foreach ($result as $key => $value) { foreach ($result as $key => $value) {
$parseData[$key] = $value; $parseData[$key] = $value;
$parseData[$key]['company_belong_str'] = $value['company_belong'] ? '外团' : '内团'; $parseData[$key]['company_belong_str'] = getCompanyBlong($value['company_belong']);
$parseData[$key]['company_relation_str'] = $value['company_relation'] ? '只维护' : '自主开发及维护'; $parseData[$key]['company_relation_str'] = $value['company_relation'] ? '只维护' : '自主开发及维护';
} }
return $parseData; return $parseData;

@ -144,10 +144,11 @@
</div> </div>
<div class="input-list input-list-channelstatus"> <div class="input-list input-list-channelstatus">
<select name="company_belong"> <select name="company_belong" class="select_gallery">
<option value="">内外团</option> <option value="">请选择团体类型</option>
<option value="0">内团</option> <volist name=":getCompanyBlong()" id="vo">
<option value="1">外团</option> <option value="{$vo.id}" <php> if($_GET['company_belong'] !='' && $vo['id'] == $_GET['company_belong'])echo selected;</php>>{$vo.name}</option>
</volist>
</select> </select>
</div> </div>
<else/> <else/>

Loading…
Cancel
Save