Commit 86966448 authored by Quxl's avatar Quxl

x

parent 9114ba9e
...@@ -94,22 +94,24 @@ public class WebUtilController { ...@@ -94,22 +94,24 @@ public class WebUtilController {
} }
} }
String enroll_type_name_other = (String)map.get("enroll_type_name_other"); String enroll_type_name_other = (String)map.get("enroll_type_name_other");
String[] strs = enroll_type_name_other.split(","); if(StringUtil.isNotBlank(enroll_type_name_other)) {
if(StringUtil.contains(strs, "1") && !StringUtil.contains(strs, "8")) { String[] strs = enroll_type_name_other.split(",");
List<String> othersList = new ArrayList<String>(); if(StringUtil.contains(strs, "1") && !StringUtil.contains(strs, "8")) {
for(String str : strs) { List<String> othersList = new ArrayList<String>();
othersList.add(str); for(String str : strs) {
} othersList.add(str);
othersList.add("8");
othersList.sort(new Comparator<String>() {
@Override
public int compare(String s1, String s2) {
Integer v1 = Integer.valueOf(s1);
Integer v2 = Integer.valueOf(s2);
return v1.compareTo(v2);
} }
}); othersList.add("8");
objList.add(new Object[] {StringUtil.join(",", "", "", "", othersList), id}); othersList.sort(new Comparator<String>() {
@Override
public int compare(String s1, String s2) {
Integer v1 = Integer.valueOf(s1);
Integer v2 = Integer.valueOf(s2);
return v1.compareTo(v2);
}
});
objList.add(new Object[] {StringUtil.join(",", "", "", "", othersList), id});
}
} }
} }
if(enrolls.size() > 0) { if(enrolls.size() > 0) {
......
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 to comment