|
- <?php
- //Author:fuhc
- //Date:20160919
- //Demo
-
-
- require_once __DIR__.'/../HotelLib.php';
-
-
- class TEST extends HotelLib{
-
- // 得到dict_type 数据
- function getDictTypeList(){
- $sql="select id,type_name,parent_id,create_time from dict_type";
- // $sql = "update order_comment set cancel_flag = 0 where order_id = 852299";
- $rowset=$this->DBTool->queryBySql($sql);
- $data=array();
- $data['code']=$rowset['code'];
- $data['info']=$rowset['info'];
- $data['dict_type_list']=$rowset['rowset'];
- return $data;
-
- //
- // $this->DBTool->my_pdo->exec($sql);
- //
- //
- // if($this->DBTool->my_pdo->errorCode()=="00000"){
- // return ["code"=>$this->DBTool->my_pdo->errorCode(),"info"=>"","dict_type_list"=>array()];
- // }else{
- // $err = $this->DBTool->my_pdo->errorInfo();
- // return ["code"=>$err[1],"info"=>$err[2],"dict_type_list"=>array()];
- // }
-
- }
-
- function getOrderList(){
-
- }
-
- }
-
-
-
- ?>
|