예제 #1
0
 /**
  *根据供应商编号获取额度、预警额度、是否签约
  *@param $id  订单编号数组
  *日期:2013/11/27
  *作者:王民伟
  */
 public static function getParInfo($id)
 {
     self::initDB();
     $sql = "SELECT *  FROM ph_partner WHERE   id={$id} ";
     $query = self::$dbConn->query($sql);
     if ($query) {
         $ret = self::$dbConn->fetch_array_all($query);
         if (empty($ret[0])) {
             self::$errMsg = "无数据";
             return false;
         }
         return $ret;
     }
     self::$errMsg = "获取数据失败";
     return false;
 }