公会信息登记导出补充

master
zhengyongxing 4 years ago
parent 9fceedd10e
commit e775701c78

@ -76,10 +76,12 @@ class SocietyInfoController extends ThinkController
$query = $model->where($map)->order("id desc"); $query = $model->where($map)->order("id desc");
$count = $query->count(); $count = $query->count();
if($is_export){ if($is_export){
$parseData = $query->field("province, city, company_name, register_capital, functionary, phone, wechat, qq, game_type, game_name, join_platform, promote_scale, turnover, address, league_info, is_potential, remark, interface_person, create_time, communication_time, create_account") $parseData = $query->field("province, city, company_name, register_capital, functionary, phone, wechat, qq, game_type, game_name, join_platform, promote_scale,sociaty_level, turnover, address, league_info, is_potential, remark, interface_person, create_time, communication_time, create_account")
->where($map) ->where($map)
->order("id desc")
->select(); ->select();
foreach ($parseData as &$v) { foreach ($parseData as &$v) {
$v['sociaty_level'] = $this->level[$v['sociaty_level']];
if ($v['is_potential'] == 1) $v['is_potential'] = "是"; if ($v['is_potential'] == 1) $v['is_potential'] = "是";
else $v['is_potential'] = "否"; else $v['is_potential'] = "否";
$v['communication_time'] = date('Y-m-d H:i:s', $v['communication_time']); $v['communication_time'] = date('Y-m-d H:i:s', $v['communication_time']);
@ -90,7 +92,7 @@ class SocietyInfoController extends ThinkController
} }
addOperationLog(['op_type'=>3,'key'=>getNowDate(),'url'=>U(CONTROLLER_NAME.'/'.ACTION_NAME, I('get.*')),'menu'=>"推广-公会信息-导出"]); addOperationLog(['op_type'=>3,'key'=>getNowDate(),'url'=>U(CONTROLLER_NAME.'/'.ACTION_NAME, I('get.*')),'menu'=>"推广-公会信息-导出"]);
$head = ["省份", "城市", "公司", "注册资本", "负责人", "电话", "微信", "QQ", "游戏类型", "所做游戏", $head = ["省份", "城市", "公司", "注册资本", "负责人", "电话", "微信", "QQ", "游戏类型", "所做游戏",
"合作平台", "推广规模", "流水", "地址", "联盟信息", "是否为意向客户", "备注信息", "对接人", "录入时间", "最后沟通时间", "录入员"]; "合作平台", "推广规模", "公会等级", "流水", "地址", "联盟信息", "是否为意向客户", "备注信息", "对接人", "录入时间", "最后沟通时间", "录入员"];
$this->export($head, $parseData, "公会信息-".date('Ymd')); $this->export($head, $parseData, "公会信息-".date('Ymd'));
return ; return ;
} else { } else {

Loading…
Cancel
Save