门店查询逻辑
This commit is contained in:
@@ -56,6 +56,8 @@ class ErpController extends Controller
|
||||
//解析成erp所需参数(订单详情是否需要改动 - 线上订单的展示)
|
||||
$erpData = [];
|
||||
$ids = [];
|
||||
|
||||
$defaultUserId = '41677';
|
||||
foreach($productOrders as $k=>$v){
|
||||
// 如果是商城订单
|
||||
if ($v['order_type'] == 2) {
|
||||
@@ -64,7 +66,7 @@ class ErpController extends Controller
|
||||
$erpData[$k]['createTime'] = date('Y-m-d H:i:s', $v['created_at']);
|
||||
// $erpData[$k]['userId'] = $v['store']['erp_id'];
|
||||
// 商城订单暂时都用11007诊所来接收订单
|
||||
$erpData[$k]['userId'] = '41677';
|
||||
$erpData[$k]['userId'] = $defaultUserId;
|
||||
$erpData[$k]['orderStatus'] = $v['status'];
|
||||
$erpData[$k]['orderType'] = $v['type'];
|
||||
$erpData[$k]['totalAmount'] = $v['total_pay_price'];
|
||||
@@ -115,7 +117,11 @@ class ErpController extends Controller
|
||||
if ($v['prescription']['status'] == 1) {
|
||||
$erpData[$k]['orderId'] = $v['order_no'];
|
||||
$erpData[$k]['createTime'] = date('Y-m-d H:i:s', $v['created_at']);
|
||||
$erpData[$k]['userId'] = $v['store']['erp_id'];
|
||||
if ($v['is_online'] == 3) {
|
||||
$erpData[$k]['userId'] = $defaultUserId;
|
||||
} else {
|
||||
$erpData[$k]['userId'] = $v['store']['erp_id'];
|
||||
}
|
||||
$erpData[$k]['orderStatus'] = $v['status'];
|
||||
$erpData[$k]['totalAmount'] = $v['total_pay_price'];
|
||||
// $erpData[$k]['deliveryAmount'] = $v['trans_expenses'];
|
||||
|
||||
Reference in New Issue
Block a user