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.
|
- <?php
- require_once __DIR__ . '/../HotelLib.php';
- /**
- * Created by PhpStorm.
- * User: gaoh
- * Date: 2016/11/15
- * Time: 10:28
- */
- class OrderConfirm extends HotelLib
- {
- function confirm(){
- $sql="update order_main set order_status=147
- WHERE order_prod_type in (25,26)
- AND cancel_flag=0
- AND order_status=314
- 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 )
- 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)
- )
- ";
- writeLog('sql= ' . $sql);
- $rowset = $this->DBTool->execSql($sql);
- // var_dump($rowset);
- return $rowset;
- }
- }
- $con=new OrderConfirm();
- $data=$con->confirm();
- echo json_encode($data);
|