|
@@ -218,7 +218,7 @@ public class ApplyInfoServiceImpl extends BaseServiceImpl<Integer, ApplyInfo> im
|
|
|
//<subName>学员专业名称</subName>
|
|
|
CourseGroupInfo groupInfo = courseGroupInfoDao.get(applyInfo.getCourseId());
|
|
|
String subName = null;
|
|
|
- String[] subNames = groupInfo.getSubName().split(".");
|
|
|
+ String[] subNames = groupInfo.getSubName().split("\\.");
|
|
|
if(subNames != null){
|
|
|
subName = subNames.length==1?subNames[0]:subNames[1];
|
|
|
}
|
|
@@ -551,4 +551,13 @@ public class ApplyInfoServiceImpl extends BaseServiceImpl<Integer, ApplyInfo> im
|
|
|
ResponseUserInfo userInfo = XStreamUtil.xmlToObject("body", ResponseUserInfo.class, body);
|
|
|
return userInfo;
|
|
|
}
|
|
|
+
|
|
|
+ public static void main(String[] args) {
|
|
|
+ String subName = null;
|
|
|
+ String[] subNames = "打击乐".split("\\.");
|
|
|
+ if(subNames != null){
|
|
|
+ subName = subNames.length==1?subNames[0]:subNames[1];
|
|
|
+ }
|
|
|
+ System.out.println(subName);
|
|
|
+ }
|
|
|
}
|