Commit 86966448 authored by Quxl's avatar Quxl

x

parent 9114ba9e
......@@ -94,22 +94,24 @@ public class WebUtilController {
}
}
String enroll_type_name_other = (String)map.get("enroll_type_name_other");
String[] strs = enroll_type_name_other.split(",");
if(StringUtil.contains(strs, "1") && !StringUtil.contains(strs, "8")) {
List<String> othersList = new ArrayList<String>();
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);
if(StringUtil.isNotBlank(enroll_type_name_other)) {
String[] strs = enroll_type_name_other.split(",");
if(StringUtil.contains(strs, "1") && !StringUtil.contains(strs, "8")) {
List<String> othersList = new ArrayList<String>();
for(String str : strs) {
othersList.add(str);
}
});
objList.add(new Object[] {StringUtil.join(",", "", "", "", othersList), id});
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);
}
});
objList.add(new Object[] {StringUtil.join(",", "", "", "", othersList), id});
}
}
}
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