Преглед изворни кода

[智价云] 公司分类信息导出

tangyuanwang пре 2 месеци
родитељ
комит
a4e079b140

+ 16 - 14
app/Http/Controllers/Manager/Process/LowPriceGoods.php

@@ -353,13 +353,14 @@ class LowPriceGoods extends Controller
         $sheet->setCellValue('J2', '链接地址');
         $sheet->setCellValue('K2', '店铺名称');
         $sheet->setCellValue('L2', '公司名称');
-        $sheet->setCellValue('M2', '信用代码');
-        $sheet->setCellValue('N2', '省份');
-        $sheet->setCellValue('O2', '城市');
-        $sheet->setCellValue('P2', '溯源责任人');
-        $sheet->setCellValue('Q2', '处理状态');
-        $sheet->setCellValue('R2', '任务状态');
-        $sheet->setCellValue('S2', '记录时间');
+        $sheet->setCellValue('M2', '公司分类');
+        $sheet->setCellValue('N2', '信用代码');
+        $sheet->setCellValue('O2', '省份');
+        $sheet->setCellValue('P2', '城市');
+        $sheet->setCellValue('Q2', '溯源责任人');
+        $sheet->setCellValue('R2', '处理状态');
+        $sheet->setCellValue('S2', '任务状态');
+        $sheet->setCellValue('T2', '记录时间');
 
         $platform_data = [
             '0' => '全部',
@@ -396,13 +397,14 @@ class LowPriceGoods extends Controller
             $sheet->setCellValue('J' . $row, $item['link_url']);
             $sheet->setCellValue('K' . $row, $item['store_name']);
             $sheet->setCellValue('L' . $row, $item['company_name']);
-            $sheet->setCellValue('M' . $row, $item['social_credit_code']);
-            $sheet->setCellValue('N' . $row, $item['province_name']);
-            $sheet->setCellValue('O' . $row, $item['city_name']);
-            $sheet->setCellValue('P' . $row, $source_responsible_person_name);
-            $sheet->setCellValue('Q' . $row, isset($processing_status_text[$item['processing_status']]) ? $processing_status_text[$item['processing_status']] : '');
-            $sheet->setCellValue('R' . $row, isset($status_text[$item['status']]) ? $status_text[$item['status']] : '');
-            $sheet->setCellValue('S' . $row, date('Y-m-d H:i:s', $item['insert_time']));
+            $sheet->setCellValue('M' . $row, $item['company_category_name']);
+            $sheet->setCellValue('N' . $row, $item['social_credit_code']);
+            $sheet->setCellValue('O' . $row, $item['province_name']);
+            $sheet->setCellValue('P' . $row, $item['city_name']);
+            $sheet->setCellValue('Q' . $row, $source_responsible_person_name);
+            $sheet->setCellValue('R' . $row, isset($processing_status_text[$item['processing_status']]) ? $processing_status_text[$item['processing_status']] : '');
+            $sheet->setCellValue('S' . $row, isset($status_text[$item['status']]) ? $status_text[$item['status']] : '');
+            $sheet->setCellValue('T' . $row, date('Y-m-d H:i:s', $item['insert_time']));
             $row++;
         }
         // 生成 Excel 文件

+ 16 - 14
app/Http/Controllers/Manager/Process/ViolationProduct.php

@@ -350,13 +350,14 @@ class ViolationProduct extends Controller
         $sheet->setCellValue('H2', '链接地址');
         $sheet->setCellValue('I2', '店铺名称');
         $sheet->setCellValue('J2', '公司名称');
-        $sheet->setCellValue('K2', '信用代码');
-        $sheet->setCellValue('L2', '省份');
-        $sheet->setCellValue('M2', '城市');
-        $sheet->setCellValue('N2', '溯源责任人');
-        $sheet->setCellValue('O2', '处理状态');
-        $sheet->setCellValue('P2', '任务状态');
-        $sheet->setCellValue('Q2', '记录时间');
+        $sheet->setCellValue('K2', '公司分类');
+        $sheet->setCellValue('L2', '信用代码');
+        $sheet->setCellValue('M2', '省份');
+        $sheet->setCellValue('N2', '城市');
+        $sheet->setCellValue('O2', '溯源责任人');
+        $sheet->setCellValue('P2', '处理状态');
+        $sheet->setCellValue('Q2', '任务状态');
+        $sheet->setCellValue('R2', '记录时间');
 
         $platform_data = [
             '0' => '全部',
@@ -391,13 +392,14 @@ class ViolationProduct extends Controller
             $sheet->setCellValue('H' . $row, $item['link_url']);
             $sheet->setCellValue('I' . $row, $item['store_name']);
             $sheet->setCellValue('J' . $row, $item['company_name']);
-            $sheet->setCellValue('K' . $row, $item['social_credit_code']);
-            $sheet->setCellValue('L' . $row, $item['province_name']);
-            $sheet->setCellValue('M' . $row, $item['city_name']);
-            $sheet->setCellValue('N' . $row, $source_responsible_person_name);
-            $sheet->setCellValue('O' . $row, isset($processing_status_text[$item['processing_status']]) ? $processing_status_text[$item['processing_status']] : '');
-            $sheet->setCellValue('P' . $row, isset($status_text[$item['status']]) ? $status_text[$item['status']] : '');
-            $sheet->setCellValue('Q' . $row, date('Y-m-d H:i:s', $item['insert_time']));
+            $sheet->setCellValue('K' . $row, $item['company_category_name']);
+            $sheet->setCellValue('L' . $row, $item['social_credit_code']);
+            $sheet->setCellValue('M' . $row, $item['province_name']);
+            $sheet->setCellValue('N' . $row, $item['city_name']);
+            $sheet->setCellValue('O' . $row, $source_responsible_person_name);
+            $sheet->setCellValue('P' . $row, isset($processing_status_text[$item['processing_status']]) ? $processing_status_text[$item['processing_status']] : '');
+            $sheet->setCellValue('Q' . $row, isset($status_text[$item['status']]) ? $status_text[$item['status']] : '');
+            $sheet->setCellValue('R' . $row, date('Y-m-d H:i:s', $item['insert_time']));
             $row++;
         }
         foreach (range('A', 'P') as $column) {

+ 16 - 14
app/Http/Controllers/Manager/Process/ViolationStore.php

@@ -327,13 +327,14 @@ class ViolationStore extends Controller
         $sheet->setCellValue('D2', '链接地址');
         $sheet->setCellValue('E2', '店铺名称');
         $sheet->setCellValue('F2', '公司名称');
-        $sheet->setCellValue('G2', '信用代码');
-        $sheet->setCellValue('H2', '省份');
-        $sheet->setCellValue('I2', '城市');
-        $sheet->setCellValue('J2', '溯源责任人');
-        $sheet->setCellValue('K2', '处理状态');
-        $sheet->setCellValue('L2', '任务状态');
-        $sheet->setCellValue('M2', '记录时间');
+        $sheet->setCellValue('G2', '公司分类');
+        $sheet->setCellValue('H2', '信用代码');
+        $sheet->setCellValue('I2', '省份');
+        $sheet->setCellValue('J2', '城市');
+        $sheet->setCellValue('K2', '溯源责任人');
+        $sheet->setCellValue('L2', '处理状态');
+        $sheet->setCellValue('M2', '任务状态');
+        $sheet->setCellValue('N2', '记录时间');
 
         $platform_data = [
             '0' => '全部',
@@ -364,13 +365,14 @@ class ViolationStore extends Controller
             $sheet->setCellValue('D' . $row, $item['link_url']);
             $sheet->setCellValue('E' . $row, $item['store_name']);
             $sheet->setCellValue('F' . $row, $item['company_name']);
-            $sheet->setCellValue('G' . $row, $item['social_credit_code']);
-            $sheet->setCellValue('H' . $row, $item['province_name']);
-            $sheet->setCellValue('I' . $row, $item['city_name']);
-            $sheet->setCellValue('J' . $row, $source_responsible_person_name);
-            $sheet->setCellValue('K' . $row, isset($processing_status_text[$item['processing_status']]) ? $processing_status_text[$item['processing_status']] : '');
-            $sheet->setCellValue('L' . $row, isset($status_text[$item['status']]) ? $status_text[$item['status']] : '');
-            $sheet->setCellValue('M' . $row, date('Y-m-d H:i:s', $item['insert_time']));
+            $sheet->setCellValue('G' . $row, $item['company_category_name']);
+            $sheet->setCellValue('H' . $row, $item['social_credit_code']);
+            $sheet->setCellValue('I' . $row, $item['province_name']);
+            $sheet->setCellValue('J' . $row, $item['city_name']);
+            $sheet->setCellValue('K' . $row, $source_responsible_person_name);
+            $sheet->setCellValue('L' . $row, isset($processing_status_text[$item['processing_status']]) ? $processing_status_text[$item['processing_status']] : '');
+            $sheet->setCellValue('M' . $row, isset($status_text[$item['status']]) ? $status_text[$item['status']] : '');
+            $sheet->setCellValue('N' . $row, date('Y-m-d H:i:s', $item['insert_time']));
             $row++;
         }
         foreach (range('A', 'P') as $column) {