Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
caosy
/
fun-golf-service
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
a0bc06c5
authored
Nov 02, 2017
by
Huang Linyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
截取活动简称
parent
b27476fb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
src/main/java/com/ctrip/fun/golf/service/assemble/AsmCourseResourceService.java
src/main/java/com/ctrip/fun/golf/service/assemble/AsmCourseResourceService.java
View file @
a0bc06c5
...
...
@@ -603,15 +603,17 @@ public class AsmCourseResourceService {
int
index
=
containDate
(
v4list
,
priceDateStr
);
CommuneResourceV4PriceBean
bean
=
new
CommuneResourceV4PriceBean
();
String
productName
=
asm
.
getProductName
();
String
productName
=
asm
.
getProductName
()
.
replace
(
"神秘场"
,
""
).
replace
(
"-"
,
""
)
;
String
simpleProductName
=
""
;
if
(
productName
!=
null
&&
productName
.
length
()>
2
){
int
endIndex
=
productName
.
indexOf
(
"爱玩
公社
"
);
int
endIndex
=
productName
.
indexOf
(
"爱玩"
);
if
(
endIndex
>=
2
){
simpleProductName
=
productName
.
substring
(
2
,
endIndex
);
}
else
{
endIndex
=
productName
.
indexOf
(
"活动日"
);
simpleProductName
=
productName
.
substring
(
2
);
}
}
else
{
simpleProductName
=
productName
;
}
...
...
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