Ejemplo n.º 1
0
 /**
  * 用户注册走势
  * @param int $stationid 车站id
  * @param date $sdate    起始日期
  * @param date $edate    结束日期
  */
 public function UserReg($stationid, $sdate, $edate)
 {
     $sdate = date('Y_m_d', strtotime($sdate));
     if (!$edate) {
         $where_date = " and date = '{$sdate}'";
     } else {
         $edate = date('Y_m_d', strtotime($edate));
         $where_date = " and date BETWEEN '{$sdate}' AND '{$edate}'";
     }
     $obj = new Psys_StationRule();
     return $obj->UserReg($stationid, $where_date);
 }