* Code for block riskList.

This commit is contained in:
holan20180123
2020-08-20 16:27:26 +08:00
parent 1cced1537d
commit f5319cee4e
11 changed files with 118 additions and 3 deletions
+19
View File
@@ -195,6 +195,25 @@ class riskModel extends model
return $this->dao->select('*')->from(TABLE_RISK)->where('id')->eq((int)$riskID)->fetch();
}
/**
* Get block risks
*
* @param string $browseType
* @param int $limit
* @param string $orderBy
* @access public
* @return object
*/
public function getBlockRisks($browseType = 'all', $limit = 15, $orderBy = 'id_desc')
{
return $this->dao->select('*')->from(TABLE_RISK)
->where('program')->eq($this->session->program)
->andWhere('deleted')->eq('0')
->orderBy($orderBy)
->limit($limit)
->fetchAll();
}
/**
* Print assignedTo html
*