ht
parent
6ab0d64546
commit
a488f167bd
|
|
@ -101,7 +101,16 @@ public class Controller extends com.jfinal.core.Controller {
|
|||
|
||||
paraMap.forEach((key, arr) -> {
|
||||
if (!"id".equals(key) && !"action".equals(key)) {
|
||||
if (arr.length == 1) {
|
||||
ops.add(Updates.set(key, arr[0]));
|
||||
} else if (arr.length > 1) {
|
||||
List<String> s = new ArrayList<>();
|
||||
for (String s1 : arr) {
|
||||
s.add(s1);
|
||||
}
|
||||
ops.add(Updates.set(key, s));
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue