|
@@ -100,6 +100,9 @@ public class ExcelServiceImpl implements IExcelService {
|
|
Integer index = 0;
|
|
Integer index = 0;
|
|
for (HashMap<Integer, String> map : excelRowList) {
|
|
for (HashMap<Integer, String> map : excelRowList) {
|
|
index ++;
|
|
index ++;
|
|
|
|
+ if(map.isEmpty()){
|
|
|
|
+ continue;
|
|
|
|
+ }
|
|
if(type == 0){ //入库
|
|
if(type == 0){ //入库
|
|
if(index == 0 && !map.get(0).equals("设备入库模板")){
|
|
if(index == 0 && !map.get(0).equals("设备入库模板")){
|
|
throw new BusinessException(ResultCode.TEMPLATE_TYPE_ERROR);
|
|
throw new BusinessException(ResultCode.TEMPLATE_TYPE_ERROR);
|