Commit dd8a6e50 authored by dengguangman's avatar dengguangman Committed by Administrator

-

Signed-off-by: Administrator's avatarAdministrator <admin@example.com>
parent 2956043a
......@@ -44,10 +44,10 @@ public class CbProjectOtherImportListener extends AnalysisEventListener<CbProjec
// failureMsg.append("<br/>" + rowIndex + "行 解析失败:清单内容不能为空");
// }
String number = importVo.getNumber();
if (StrUtil.isEmpty(number)) {
failureNum++;
failureMsg.append("<br/>" + rowIndex + "行 解析失败:序号不能为空");
}
// if (StrUtil.isEmpty(number)) {
// failureNum++;
// failureMsg.append("<br/>" + rowIndex + "行 解析失败:序号不能为空");
// }
importVo.setCbProjectFileId(fileId);
Boolean numberMatch = false;
......@@ -57,10 +57,11 @@ public class CbProjectOtherImportListener extends AnalysisEventListener<CbProjec
if (ReUtil.isMatch(regex, number) || ReUtil.isMatch(pattern, number)||ReUtil.isMatch(pattern3, number)) {
numberMatch = true;
} else {
failureNum++;
failureMsg.append("<br/>" + rowIndex + "行 解析失败:序号格式错误");
}
// else {
// failureNum++;
// failureMsg.append("<br/>" + rowIndex + "行 解析失败:序号格式错误");
// }
if(numberMatch){
if (ReUtil.isMatch(regex, number)){
String replace = number.replaceAll("[\\\\((]|[\\\\))]", "");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment