|
|
@ -64,6 +64,7 @@ class BatchImportExcelEvent extends Controller{
|
|
|
|
if($currentColumn == "C"){
|
|
|
|
if($currentColumn == "C"){
|
|
|
|
$currentvalue = $sheet->getCell($address)->getValue();
|
|
|
|
$currentvalue = $sheet->getCell($address)->getValue();
|
|
|
|
if (empty($currentvalue)) {
|
|
|
|
if (empty($currentvalue)) {
|
|
|
|
|
|
|
|
continue;
|
|
|
|
unlink($file);
|
|
|
|
unlink($file);
|
|
|
|
throw new \Exception($address.' 数据为空');
|
|
|
|
throw new \Exception($address.' 数据为空');
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -86,6 +87,7 @@ class BatchImportExcelEvent extends Controller{
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|
$currentvalue = $sheet->getCell($address)->getValue();
|
|
|
|
$currentvalue = $sheet->getCell($address)->getValue();
|
|
|
|
if (empty($currentvalue)) {
|
|
|
|
if (empty($currentvalue)) {
|
|
|
|
|
|
|
|
continue;
|
|
|
|
unlink($file);
|
|
|
|
unlink($file);
|
|
|
|
throw new \Exception($address.' 数据为空');
|
|
|
|
throw new \Exception($address.' 数据为空');
|
|
|
|
}
|
|
|
|
}
|
|
|
|