You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

44 lines
895 B

  1. <?php
  2. //Author:fuhc
  3. //Date:20160919
  4. //Demo
  5. require_once __DIR__.'/../HotelLib.php';
  6. class TEST extends HotelLib{
  7. // 得到dict_type 数据
  8. function getDictTypeList(){
  9. $sql="select id,type_name,parent_id,create_time from dict_type";
  10. // $sql = "update order_comment set cancel_flag = 0 where order_id = 852299";
  11. $rowset=$this->DBTool->queryBySql($sql);
  12. $data=array();
  13. $data['code']=$rowset['code'];
  14. $data['info']=$rowset['info'];
  15. $data['dict_type_list']=$rowset['rowset'];
  16. return $data;
  17. //
  18. // $this->DBTool->my_pdo->exec($sql);
  19. //
  20. //
  21. // if($this->DBTool->my_pdo->errorCode()=="00000"){
  22. // return ["code"=>$this->DBTool->my_pdo->errorCode(),"info"=>"","dict_type_list"=>array()];
  23. // }else{
  24. // $err = $this->DBTool->my_pdo->errorInfo();
  25. // return ["code"=>$err[1],"info"=>$err[2],"dict_type_list"=>array()];
  26. // }
  27. }
  28. function getOrderList(){
  29. }
  30. }
  31. ?>