コード例 #1
0
 /**
  * 用户下载走势
  * @param int $stationid 车站id
  * @param date $sdate    起始日期
  * @param date $edate    结束日期
  */
 public function UserDown($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->UserDown($stationid, $where_date);
 }