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.

OrderConfirm.php 935 B

3 years ago
12345678910111213141516171819202122232425262728
  1. <?php
  2. require_once __DIR__ . '/../HotelLib.php';
  3. /**
  4. * Created by PhpStorm.
  5. * User: gaoh
  6. * Date: 2016/11/15
  7. * Time: 10:28
  8. */
  9. class OrderConfirm extends HotelLib
  10. {
  11. function confirm(){
  12. $sql="update order_main set order_status=147
  13. WHERE order_prod_type in (25,26)
  14. AND cancel_flag=0
  15. AND order_status=314
  16. AND (order_id IN (select order_id from (SELECT order_id from order_main WHERE order_prod_type=25 and current_date()>prod_end_station_date) as A )
  17. OR parent_order_id IN (select order_id from (SELECT order_id from order_main WHERE order_prod_type=25 and current_date()>prod_end_station_date) as C)
  18. )
  19. ";
  20. writeLog('sql= ' . $sql);
  21. $rowset = $this->DBTool->execSql($sql);
  22. // var_dump($rowset);
  23. return $rowset;
  24. }
  25. }
  26. $con=new OrderConfirm();
  27. $data=$con->confirm();
  28. echo json_encode($data);