赞
踩
$income = M('order_list')
->field('SUM(`amount`) as total_amount,hall_id')
->group('user_id')
->having('total_amount > 100')
->select();
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。