find(array('where' => 'status!=0 and reportid='.$reportid, 'desc' => 'addtime', 'asArray' => TRUE)); } public function getRowbyid($id){ return $this->getOne(array('where' => 'verid='.$id ,'asArray' => TRUE)); } public function getRowbyVername($ver){ return $this->getOne(array('where' => 'vername='.$ver ,'asArray' => TRUE)); } public function getreportidbyid($id){ $result = $this->getOne(array('select' => 'reportid', 'where' => 'verid='.$id, 'asArray' => TRUE)); return $result['reportid']; } public function getvertime($id){ $result = $this->getOne(array('select' => 'addtime', 'where' => 'verid='.$id, 'asArray' => TRUE)); return $result['addtime']; } public function getLastVerbyrid($rid){ return $this->getOne(array('where' => 'status=2 and reportid='.$rid, 'desc' => 'addtime', 'asArray' => TRUE)); } }