```
$res = M('settlement')
->field(['*','sum(total_amount)'=>'total_amount','sum(price)'=>'price','sum(agent_coupon_price)'=>'agent_coupon_price','sum(integral_money)'=>'integral_money','sum(settlement_price)'=>'settlement_price','sum(price_back)'=>'price_back','sum(clean_price)'=>'clean_price'])
->group('uid')
->select();
$this->assign("data", $res);
$this->display();
```