|
|
@@ -51,7 +51,7 @@ class OrderGzcRepository extends BaseRepository
|
|
51
|
51
|
// 导出
|
|
52
|
52
|
$is_excel = request()->param('is_excel', 0);
|
|
53
|
53
|
if ($is_excel == 1) {
|
|
54
|
|
- $data = $query->with('user')->select()->toArray();
|
|
|
54
|
+ $data = $query->with(['user', 'bill'])->select()->toArray();
|
|
55
|
55
|
|
|
56
|
56
|
$arr = [];
|
|
57
|
57
|
if (!empty($data)) {
|
|
|
@@ -69,8 +69,8 @@ class OrderGzcRepository extends BaseRepository
|
|
69
|
69
|
];
|
|
70
|
70
|
|
|
71
|
71
|
foreach ($data as $gzcData) {
|
|
72
|
|
- if (!empty($gzcData['link_id'])) {
|
|
73
|
|
- $orderTypeMap[$gzcData['order_type']][$gzcData['link_id']] = $gzcData['id'];
|
|
|
72
|
+ if (!empty($gzcData['link_id']) && !empty($gzcData['bill'])) {
|
|
|
73
|
+ $orderTypeMap[$gzcData['bill']['type_shop']][$gzcData['bill']['link_id']] = $gzcData['id'];
|
|
74
|
74
|
}
|
|
75
|
75
|
}
|
|
76
|
76
|
|