|
@@ -5582,8 +5582,11 @@ public class ExcelTabServiceImpl extends BaseServiceImpl<ExcelTabMapper, ExcelTa
|
|
|
String elementValueNew = elementValue + ":";
|
|
|
select = doc.select("[placeholderxx=" + elementValueNew + "]");
|
|
|
}
|
|
|
- if(select.isEmpty()){// 以传入的参数为结尾 继续找
|
|
|
- select = doc.select("[placeholderxx$=" + elementValue + "]");
|
|
|
+ if(select.isEmpty()){
|
|
|
+ if(!elementValue.equals("代表数量")){
|
|
|
+ // 以传入的参数为结尾 继续找
|
|
|
+ select = doc.select("[placeholderxx$=" + elementValue + "]");
|
|
|
+ }
|
|
|
}
|
|
|
if (!select.isEmpty()) {//找到元素后 获取输入框
|
|
|
Element textareaElement = select.stream().filter(element -> element.tagName().equals("el-input")).findFirst().orElse(null);
|
|
@@ -5606,9 +5609,13 @@ public class ExcelTabServiceImpl extends BaseServiceImpl<ExcelTabMapper, ExcelTa
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- } else {// 没有找到 可能格式不同 换一种方式找
|
|
|
- Elements select2 = doc.select("[titlexx$="+elementValue+"]");
|
|
|
- if(!select2.isEmpty()){
|
|
|
+ } else {
|
|
|
+ Elements select2 = null;
|
|
|
+ if(!elementValue.equals("代表数量")){
|
|
|
+ // 没有找到 可能格式不同 换一种方式找
|
|
|
+ select2= doc.select("[titlexx$="+elementValue+"]");
|
|
|
+ }
|
|
|
+ if(select2!=null&&!select2.isEmpty()){
|
|
|
Element textareaElement = select2.first();
|
|
|
if(textareaElement != null){//正常情况
|
|
|
String id = textareaElement.attr("id");
|
|
@@ -6412,7 +6419,7 @@ public class ExcelTabServiceImpl extends BaseServiceImpl<ExcelTabMapper, ExcelTa
|
|
|
}
|
|
|
}
|
|
|
//表单排序
|
|
|
- resultList.sort(new ExcelTabServiceImpl.WbsTreeContractComparator());
|
|
|
+ resultList.sort(new WbsTreeContractComparator());
|
|
|
//根据规则生成编号
|
|
|
List<String> numbers = generateNumbers(dto);
|
|
|
//构造入库数据
|