浏览代码

fix: 修改箱码合一文件上传从第三行开始读取

Marko552 3 年之前
父节点
当前提交
f434b86849

+ 1 - 1
abi-cloud-qr-platform-server/src/main/java/com/abi/qms/platform/service/impl/QrBoxMappingServiceImpl.java

@@ -347,7 +347,7 @@ public class QrBoxMappingServiceImpl implements QrBoxMappingService {
 //                //判断有没有中文标题
 //                Pattern p = Pattern.compile("[\u4e00-\u9fa5]");
 //                Matcher m = p.matcher(encryptCodeStr);
-                if (reader.getLineNumber()>1) {
+                if (reader.getLineNumber()>2) {
                     if (encryptCodeStr.contains(",")) {
                         throw new BusinessException("码包文件格式错误,建议每行一个码!");
                     }