|
|
@@ -3,6 +3,7 @@ |
|
|
|
namespace app\admin\service; |
|
|
|
|
|
|
|
use app\admin\command\Util; |
|
|
|
use app\admin\dao\AdminDao; |
|
|
|
use app\admin\dao\OrderHotelDao; |
|
|
|
use app\admin\dao\OrderItemDao; |
|
|
|
use app\admin\dao\OrderMainDao; |
|
|
@@ -47,6 +48,13 @@ class OrderMainService |
|
|
|
//循环子订单 |
|
|
|
foreach ($param['subOrderList'] as $subOrderParam) { |
|
|
|
$subOrderParam['group_id'] = $param['group_id']; |
|
|
|
//2.获取负责人昵称 |
|
|
|
$adminDao = new AdminDao(); |
|
|
|
$adminRe = $adminDao->getInfoById($subOrderParam['purchase_user_id']); |
|
|
|
if (!$adminRe['flag']) { |
|
|
|
return $adminRe; |
|
|
|
} |
|
|
|
$subOrderParam['purchase_user'] = $adminRe['data']['nickname']; |
|
|
|
/** |
|
|
|
* 2.添加子订单 有则激活更新、无则添加 |
|
|
|
*/ |
|
|
@@ -122,6 +130,13 @@ class OrderMainService |
|
|
|
{ |
|
|
|
$orderId = $subOrderParam['order_id']; |
|
|
|
$orderMainDao = new OrderMainDao(); |
|
|
|
//2.获取负责人昵称 |
|
|
|
$adminDao = new AdminDao(); |
|
|
|
$adminRe = $adminDao->getInfoById($subOrderParam['purchase_user_id']); |
|
|
|
if (!$adminRe['flag']) { |
|
|
|
return $adminRe; |
|
|
|
} |
|
|
|
$subOrderParam['purchase_user'] = $adminRe['data']['nickname']; |
|
|
|
/** |
|
|
|
* 2.添加子订单 |
|
|
|
*/ |
|
|
|