Commit a0bc06c5 by Huang Linyu

截取活动简称

parent b27476fb
......@@ -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;
}
......
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 sign in to comment