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