public function getPolicyTotalPage($pageSize, $type) { $dao = new DaoPolicy(); if ($pageSize > 0) { $total = $dao->getPolicyTotalNum($type); $res = (int) ($total / $pageSize); $delivery = $total % $pageSize; if ($delivery > 0) { return $res + 1; } else { $res; } } else { return false; } }
/** * 根据id获取详细的政策信息 * 返回响应的数组信息 */ public function getPolicyById($id) { $dao = new DaoPolicy(); return $dao->getPolicyById($id); }