$sql = 'select sum(amount) as amount from option_capital where status = 2 and amount > 0 and user_id = '.$user_id; $ret = $this->query($sql);
$sql = 'select sum(amount) as amount from option_capital where status = 2 and amount > 0 and user_id = '.$user_id; $ret = $this->query($sql);
转载于:https://www.cnblogs.com/xiaobiaomei/p/9455739.html