示例#1
0
 /**
  * @param $id
  * @return array|mixed|null
  */
 public static function getBuilding($id)
 {
     $DBuilding = null;
     try {
         $da = Model_Jinpu_Building::data_access();
         $DBuilding = $da->find_by_pk($id);
         unset($da);
     } catch (Exception $e) {
     }
     return $DBuilding;
 }
示例#2
0
 /**
  * @param int $ids
  */
 public static function get_building_by_ids($ids)
 {
     $DBuilding = Model_Jinpu_Building::data_access()->filter('id', $ids)->get_all();
     return $DBuilding;
 }