Browse Source

检测数据

15168162575 2 years ago
parent
commit
54cc5495a6
1 changed files with 27 additions and 27 deletions
  1. 27 27
      application/admin/controller/Res.php

+ 27 - 27
application/admin/controller/Res.php

@@ -147,32 +147,32 @@ class Res extends Backend
                     'judge' => $judge,
                     'maker' => $res['maker'],
                     'remark' => '',
-                    '0' => isset($gather['甲醇']) ? $gather['甲醇'] : '0',
-                    '1' => isset($gather['乙醇']) ? $gather['乙醇'] : '0',
-                    '2' => isset($gather['异丙醇']) ? $gather['异丙醇'] : '0',
-                    '3' => isset($gather['丙酮']) ? $gather['丙酮'] : '0',
-                    '4' => isset($gather['正丙醇']) ? $gather['正丙醇'] : '0',
-                    '5' => isset($gather['丁酮']) ? $gather['丁酮'] : '0',
-                    '6' => isset($gather['乙酸乙酯']) ? $gather['乙酸乙酯'] : '0',
-                    '7' => isset($gather['乙酸异丙酯']) ? $gather['乙酸异丙酯'] : '0',
-                    '8' => isset($gather['正丁醇']) ? $gather['正丁醇'] : '0',
-                    '9' => isset($gather['苯']) ? $gather['苯'] : '0',
-                    '10' => isset($gather['1-甲氧基-2-丙醇']) ? $gather['1-甲氧基-2-丙醇'] : '0',
-                    '11' => isset($gather['乙酸正丙酯']) ? $gather['乙酸正丙酯'] : '0',
-                    '12' => isset($gather['2-乙氧基乙醇']) ? $gather['2-乙氧基乙醇'] : '0',
-                    '13' => isset($gather['4-甲基-2-戊酮']) ? $gather['4-甲基-2-戊酮'] : '0',
-                    '14' => isset($gather['1-乙氧基-2-丙醇']) ? $gather['1-乙氧基-2-丙醇'] : '0',
-                    '15' => isset($gather['甲苯']) ? $gather['甲苯'] : '0',
-                    '16' => isset($gather['乙酸正丁酯']) ? $gather['乙酸正丁酯'] : '0',
-                    '17' => isset($gather['乙苯']) ? $gather['乙苯'] : '0',
-                    '18' => isset($gather['间对二甲苯']) ? $gather['间对二甲苯'] : '0',
-                    '19' => isset($gather['邻-二甲苯']) ? $gather['邻-二甲苯'] : '0',
-                    '20' => isset($gather['苯乙烯']) ? $gather['苯乙烯'] : '0',
-                    '21' => isset($gather['2-乙氧基乙基乙酸酯']) ? $gather['2-乙氧基乙基乙酸酯'] : '0',
-                    '22' => isset($gather['环己酮']) ? $gather['环己酮'] : '0',
-                    '23' => isset($gather['丁二酸二甲酯']) ? $gather['丁二酸二甲酯'] : '0',
-                    '24' => isset($gather['戊二酸二甲酯']) ? $gather['戊二酸二甲酯'] : '0',
-                    '25' => isset($gather['己二酸二甲酯']) ? $gather['己二酸二甲酯'] : '0',
+                    '0' => isset($gather['甲醇']) ? $gather['甲醇'] : null,
+                    '1' => isset($gather['乙醇']) ? $gather['乙醇'] : null,
+                    '2' => isset($gather['异丙醇']) ? $gather['异丙醇'] : null,
+                    '3' => isset($gather['丙酮']) ? $gather['丙酮'] : null,
+                    '4' => isset($gather['正丙醇']) ? $gather['正丙醇'] : null,
+                    '5' => isset($gather['丁酮']) ? $gather['丁酮'] : null,
+                    '6' => isset($gather['乙酸乙酯']) ? $gather['乙酸乙酯'] : null,
+                    '7' => isset($gather['乙酸异丙酯']) ? $gather['乙酸异丙酯'] : null,
+                    '8' => isset($gather['正丁醇']) ? $gather['正丁醇'] : null,
+                    '9' => isset($gather['苯']) ? $gather['苯'] : null,
+                    '10' => isset($gather['1-甲氧基-2-丙醇']) ? $gather['1-甲氧基-2-丙醇'] : null,
+                    '11' => isset($gather['乙酸正丙酯']) ? $gather['乙酸正丙酯'] : null,
+                    '12' => isset($gather['2-乙氧基乙醇']) ? $gather['2-乙氧基乙醇'] : null,
+                    '13' => isset($gather['4-甲基-2-戊酮']) ? $gather['4-甲基-2-戊酮'] : null,
+                    '14' => isset($gather['1-乙氧基-2-丙醇']) ? $gather['1-乙氧基-2-丙醇'] : null,
+                    '15' => isset($gather['甲苯']) ? $gather['甲苯'] : null,
+                    '16' => isset($gather['乙酸正丁酯']) ? $gather['乙酸正丁酯'] : null,
+                    '17' => isset($gather['乙苯']) ? $gather['乙苯'] : null,
+                    '18' => isset($gather['间对二甲苯']) ? $gather['间对二甲苯'] : null,
+                    '19' => isset($gather['邻-二甲苯']) ? $gather['邻-二甲苯'] : null,
+                    '20' => isset($gather['苯乙烯']) ? $gather['苯乙烯'] : null,
+                    '21' => isset($gather['2-乙氧基乙基乙酸酯']) ? $gather['2-乙氧基乙基乙酸酯'] : null,
+                    '22' => isset($gather['环己酮']) ? $gather['环己酮'] : null,
+                    '23' => isset($gather['丁二酸二甲酯']) ? $gather['丁二酸二甲酯'] : null,
+                    '24' => isset($gather['戊二酸二甲酯']) ? $gather['戊二酸二甲酯'] : null,
+                    '25' => isset($gather['己二酸二甲酯']) ? $gather['己二酸二甲酯'] : null,
                 ];
             }
             $this->exceloutput($data);
@@ -267,7 +267,7 @@ class Res extends Backend
         $sheet->setCellValue('AD2','甲苯');
         $sheet->setCellValue('AE2','乙酸正丁酯');
         $sheet->setCellValue('AF2','乙苯');
-        $sheet->setCellValue('AG2','间对-二甲苯');
+        $sheet->setCellValue('AG2','间对-二甲苯');
         $sheet->setCellValue('AH2','邻-二甲苯');
         $sheet->setCellValue('AI2','苯乙烯');
         $sheet->setCellValue('AJ2','2-乙氧基乙基乙酸酯');