|
@@ -168,7 +168,6 @@ class AdminEquipmentController extends AdminBaseController{ |
|
@@ -168,7 +168,6 @@ class AdminEquipmentController extends AdminBaseController{ |
168
|
'note' => $objPHPExcel->getActiveSheet()->getCell("e" . $j)->getValue(),
|
168
|
'note' => $objPHPExcel->getActiveSheet()->getCell("e" . $j)->getValue(),
|
169
|
'create_time' => time()
|
169
|
'create_time' => time()
|
170
|
];
|
170
|
];
|
171
|
- dump($data);
|
|
|
172
|
$data['qr_code'] = $this->createQrCode($data['name']);
|
171
|
$data['qr_code'] = $this->createQrCode($data['name']);
|
173
|
//查询设备是否已存在
|
172
|
//查询设备是否已存在
|
174
|
$is_equipment=Db::name('equipment')->where(['name'=>$data['name'],'is_delete'=>0])->count();
|
173
|
$is_equipment=Db::name('equipment')->where(['name'=>$data['name'],'is_delete'=>0])->count();
|
|
@@ -177,6 +176,7 @@ class AdminEquipmentController extends AdminBaseController{ |
|
@@ -177,6 +176,7 @@ class AdminEquipmentController extends AdminBaseController{ |
177
|
continue;
|
176
|
continue;
|
178
|
}
|
177
|
}
|
179
|
try{
|
178
|
try{
|
|
|
179
|
+ dump($data);
|
180
|
$Equipment->save($data);
|
180
|
$Equipment->save($data);
|
181
|
echo "第" . $j . "行数据导入成功!<br/>";
|
181
|
echo "第" . $j . "行数据导入成功!<br/>";
|
182
|
}catch (\Exception $exception){
|
182
|
}catch (\Exception $exception){
|