Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-operate-sys-cscec
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fulixin
dsk-operate-sys-cscec
Commits
dd8a6e50
Commit
dd8a6e50
authored
Mar 06, 2024
by
dengguangman
Committed by
Administrator
Mar 06, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
-
Signed-off-by:
Administrator
<
admin@example.com
>
parent
2956043a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
CbProjectOtherImportListener.java
.../com/dsk/cscec/listener/CbProjectOtherImportListener.java
+8
-7
No files found.
dsk-module/dsk-biz-api/src/main/java/com/dsk/cscec/listener/CbProjectOtherImportListener.java
View file @
dd8a6e50
...
...
@@ -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
(
"[\\\\((]|[\\\\))]"
,
""
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment