|
@@ -12,6 +12,7 @@ import com.fdkankan.agent.service.ICameraService;
|
|
|
import com.fdkankan.agent.service.IExcelService;
|
|
|
import com.fdkankan.agent.util.ExcelErrorUtil;
|
|
|
import com.fdkankan.agent.util.ExcelUtil;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
@@ -33,6 +34,7 @@ import java.util.List;
|
|
|
* @since 2022/6/6
|
|
|
**/
|
|
|
@Service
|
|
|
+@Slf4j
|
|
|
public class ExcelServiceImpl implements IExcelService {
|
|
|
|
|
|
@Autowired
|
|
@@ -85,6 +87,7 @@ public class ExcelServiceImpl implements IExcelService {
|
|
|
try {
|
|
|
excelRowList = ExcelUtil.getExcelRowList(file);
|
|
|
}catch (Exception e){
|
|
|
+ log.info("uploadExcel-error:{}",e);
|
|
|
throw new BusinessException(ResultCode.TEMPLATE_TYPE_ERROR);
|
|
|
}
|
|
|
List<Integer> errorIndex = new ArrayList<>();
|