Merge branch 'release-1.0.0' of 47.111.118.107:wmtx/platform into release-1.0.0

master
chenzhi 5 years ago
commit 0cec46ed37

@ -2545,7 +2545,7 @@ class ExportController extends Controller
$map['tp1.chain'] = '/'; $map['tp1.chain'] = '/';
} }
//为数据权限添加 //为数据权限添加
setPowerPromoteIds($map); setPowerPromoteIds($map, 'u.promote_id');
$data = M('promote', 'tab_')->alias('tp1')->field('tp1.account as promote_account,tp1.id, date_format(FROM_UNIXTIME(register_time),"%Y-%m-%d") AS time, count(u.id) as count, $data = M('promote', 'tab_')->alias('tp1')->field('tp1.account as promote_account,tp1.id, date_format(FROM_UNIXTIME(register_time),"%Y-%m-%d") AS time, count(u.id) as count,
count(IF(register_time ' . $today . ',1,null)) as today, count(IF(register_time ' . $today . ',1,null)) as today,
count(IF(register_time ' . $week . ',1,null)) as week, count(IF(register_time ' . $week . ',1,null)) as week,
@ -2564,7 +2564,8 @@ class ExportController extends Controller
$user_auth_promote_ids = session('user_auth_promote_ids'); $user_auth_promote_ids = session('user_auth_promote_ids');
if ($user_auth_promote_ids == 'all' || in_array('0', explode(",", $user_auth_promote_ids))) { if ($user_auth_promote_ids == 'all' || in_array('0', explode(",", $user_auth_promote_ids))) {
//官方渠道数据添加 //官方渠道数据添加
$authorityData = M('user', 'tab_')->field('date_format(FROM_UNIXTIME(register_time),"%Y-%m-%d") AS time, $authorityData = M('user', 'tab_')->alias('u')
->field('date_format(FROM_UNIXTIME(register_time),"%Y-%m-%d") AS time,
count(id) as count, count(id) as count,
count(IF(register_time ' . $today . ',1,null)) as today, count(IF(register_time ' . $today . ',1,null)) as today,
count(IF(register_time ' . $week . ',1,null)) as week, count(IF(register_time ' . $week . ',1,null)) as week,

@ -392,7 +392,7 @@ class PlatformController extends ThinkController
} }
//为数据权限添加 //为数据权限添加
setPowerPromoteIds($map); setPowerPromoteIds($map, 'u.promote_id');
$data = M('promote', 'tab_')->alias('tp1') $data = M('promote', 'tab_')->alias('tp1')
->field('tp1.account as promote_account,tp1.id, ->field('tp1.account as promote_account,tp1.id,
@ -417,7 +417,8 @@ class PlatformController extends ThinkController
$user_auth_promote_ids = session('user_auth_promote_ids'); $user_auth_promote_ids = session('user_auth_promote_ids');
if ($user_auth_promote_ids == 'all' || in_array('0', explode(",", $user_auth_promote_ids))) { if ($user_auth_promote_ids == 'all' || in_array('0', explode(",", $user_auth_promote_ids))) {
//官方渠道数据添加 //官方渠道数据添加
$authorityData = M('user', 'tab_')->field('date_format(FROM_UNIXTIME(register_time),"%Y-%m-%d") AS time, $authorityData = M('user', 'tab_')->alias('u')
->field('date_format(FROM_UNIXTIME(register_time),"%Y-%m-%d") AS time,
count(id) as count, count(id) as count,
count(IF(register_time ' . $today . ',1,null)) as today, count(IF(register_time ' . $today . ',1,null)) as today,
count(IF(register_time ' . $week . ',1,null)) as week, count(IF(register_time ' . $week . ',1,null)) as week,

Loading…
Cancel
Save