Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
api
Overview
Overview
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
首航-临时账号
api
Commits
b412c554
Commit
b412c554
authored
Sep 27, 2017
by
Java - 段鹏举
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码判断改为正则表达式
parent
2a5ed293
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
20 deletions
+4
-20
SailingCommandService.java
src/com/ejweb/modules/sailing/service/SailingCommandService.java
+4
-20
No files found.
src/com/ejweb/modules/sailing/service/SailingCommandService.java
View file @
b412c554
...
...
@@ -379,21 +379,13 @@ public class SailingCommandService extends CurdService<SailingCommandDao, Sailin
dao
.
updateVerifStatys
(
bean
);
}
if
(!
"00"
.
equals
(
bean
.
getCommandStatus
()))
{
Pattern
pattern
=
Pattern
.
compile
(
"(?<=routeNo\" value=\")(.+?)(?=\"/>)"
);
// 该input标签不一定以 / 结尾
Pattern
pattern
=
Pattern
.
compile
(
"(?<=routeNo\" value=\")(.+?)(?=\"/?>)"
);
Matcher
matcher
=
pattern
.
matcher
(
bean
.
getSailingText
());
while
(
matcher
.
find
())
{
routeNo
=
matcher
.
group
();
break
;
}
// 该input标签不一定以 / 结尾
if
(
StringUtils
.
isBlank
(
routeNo
))
{
pattern
=
Pattern
.
compile
(
"(?<=routeNo\" value=\")(.+?)(?=\">)"
);
matcher
=
pattern
.
matcher
(
bean
.
getSailingText
());
while
(
matcher
.
find
())
{
routeNo
=
matcher
.
group
();
break
;
}
}
if
(
StringUtils
.
isBlank
(
routeNo
))
{
verifType
=
dao
.
getVerifType
(
bean
);
...
...
@@ -676,21 +668,13 @@ public class SailingCommandService extends CurdService<SailingCommandDao, Sailin
// dao.updateVerifStatys(bean);
// }
// if(!"00".equals(bean.getCommandStatus())){
Pattern
pattern
=
Pattern
.
compile
(
"(?<=routeNo\" value=\")(.+?)(?=\"/>)"
);
// 该input标签不一定以 / 结尾
Pattern
pattern
=
Pattern
.
compile
(
"(?<=routeNo\" value=\")(.+?)(?=\"/?>)"
);
Matcher
matcher
=
pattern
.
matcher
(
bean
.
getSailingText
());
while
(
matcher
.
find
())
{
routeNo
=
matcher
.
group
();
break
;
}
// 该input标签不一定以 / 结尾
if
(
StringUtils
.
isBlank
(
routeNo
))
{
pattern
=
Pattern
.
compile
(
"(?<=routeNo\" value=\")(.+?)(?=\">)"
);
matcher
=
pattern
.
matcher
(
bean
.
getSailingText
());
while
(
matcher
.
find
())
{
routeNo
=
matcher
.
group
();
break
;
}
}
if
(
StringUtils
.
isBlank
(
routeNo
))
{
verifType
=
dao
.
getVerifType
(
bean
);
...
...
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