[新增]玩家列表汇总统计

master
chenzhi 5 years ago
parent 0ca7d2f5d2
commit 86b53d375c

@ -231,8 +231,10 @@ class MemberController extends ThinkController
->having($havs)->select(false);
}
$jcount = M('User', 'tab_')->field('count(a.id) as count')->table('(' . $sql . ') as a')->select();
$jcount = M('User', 'tab_')->field('count(a.id) as count,sum(a.recharge_total) recharge_total')->table('(' . $sql . ') as a')->select();
$count = $jcount[0]['count'];
// var_dump($jcount);die();
$this->assign('pay_allcount', $jcount[0]['recharge_total']);
$model = M('Model')->getByName('user');

@ -304,6 +304,13 @@
</tr>
</volist>
</empty>
<tr class="data_summary">
<td colspan="3" style="text-align: center;">汇总:</td>
<td colspan="99">
累计充值:{$pay_allcount}
</td>
<td></td>
</tr>
</tbody>
</table>
</div>

Loading…
Cancel
Save