|
|
@@ -182,4 +182,23 @@ class OrderMainService |
|
|
|
} |
|
|
|
return Util::returnArrSu($subOrderId); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 删除子订单 |
|
|
|
* @param $param |
|
|
|
* @return array |
|
|
|
*/ |
|
|
|
public function delSubOrder($param){ |
|
|
|
try { |
|
|
|
if ($param['prodType'] == 'hotel') { |
|
|
|
$subOrderDao = new OrderHotelDao(); |
|
|
|
} else { |
|
|
|
$subOrderDao = new OrderItemDao(); |
|
|
|
} |
|
|
|
$subOrderDao->delById($param['id']); |
|
|
|
return Util::returnArrSu(); |
|
|
|
}catch (Exception $e){ |
|
|
|
return Util::returnArrEr("删除子订单失败".$e->getMessage()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |