|
|
|
@ -76,10 +76,12 @@ class SocietyInfoController extends ThinkController
|
|
|
|
|
$query = $model->where($map)->order("id desc");
|
|
|
|
|
$count = $query->count();
|
|
|
|
|
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)
|
|
|
|
|
->order("id desc")
|
|
|
|
|
->select();
|
|
|
|
|
foreach ($parseData as &$v) {
|
|
|
|
|
$v['sociaty_level'] = $this->level[$v['sociaty_level']];
|
|
|
|
|
if ($v['is_potential'] == 1) $v['is_potential'] = "是";
|
|
|
|
|
else $v['is_potential'] = "否";
|
|
|
|
|
$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'=>"推广-公会信息-导出"]);
|
|
|
|
|
$head = ["省份", "城市", "公司", "注册资本", "负责人", "电话", "微信", "QQ", "游戏类型", "所做游戏",
|
|
|
|
|
"合作平台", "推广规模", "流水", "地址", "联盟信息", "是否为意向客户", "备注信息", "对接人", "录入时间", "最后沟通时间", "录入员"];
|
|
|
|
|
"合作平台", "推广规模", "公会等级", "流水", "地址", "联盟信息", "是否为意向客户", "备注信息", "对接人", "录入时间", "最后沟通时间", "录入员"];
|
|
|
|
|
$this->export($head, $parseData, "公会信息-".date('Ymd'));
|
|
|
|
|
return ;
|
|
|
|
|
} else {
|
|
|
|
|