Exemplo n.º 1
0
 function getNew($id)
 {
     $sql = "select * from `ws_news` where newsid={$id} and `delflg`=0";
     $rets = $this->_modelNews->findBySql($sql, null);
     return $rets;
 }
Exemplo n.º 2
0
 function getNotices($nums = 5)
 {
     $sql = "select * from `ws_news` where `type`=1 and `delflg`=0";
     $rets = $this->_modelNews->findBySql($sql, $nums);
     return $rets;
 }