$val):$where=array('fields'=>'is_state=? and is_ship=? and userid=? and addtime','values'=>array(1,0,$val['id'],strtotime(date('Y-m-d'))),);$val['total_unship_count']=$this->model()->select()->from('orders')->where($where)->count();$total_unship_income=$this->model()->select(array('income'=>'realmoney*uprice'))->from('orders')->where($where)->sum();$val['income']=$total_unship_income['income'];?>