Ver código fonte

增加编号获取方式

DengLinLang 2 meses atrás
pai
commit
7b7447690b

+ 5 - 2
blade-service/blade-manager/src/main/java/org/springblade/manager/service/impl/ExcelTabServiceImpl.java

@@ -2513,8 +2513,11 @@ public class ExcelTabServiceImpl extends BaseServiceImpl<ExcelTabMapper, ExcelTa
                     reData.put(bgbhKey, stringStringHashMap.get("valueStr"));
                 }else {
                     //获取页面上的key值
-                    String bgbhKey = doc.select("el-input[placeholderxx~=记录编号.*]").attr("keyname");
-                    reData.put(bgbhKey, stringStringHashMap.get("valueStr"));
+                    String jlbhKey = doc.select("el-input[placeholderxx~=记录编号.*]").attr("keyname");
+                    if(ObjectUtil.isEmpty(jlbhKey)){
+                        jlbhKey = doc.select("el-input[placeholderxx~=记录编 号.*]").attr("keyname");
+                    }
+                    reData.put(jlbhKey, stringStringHashMap.get("valueStr"));
                 }
             }