Skip to content

Commit 5e1d16d

Browse files
committed
... 改错了一个地方,修正之
1 parent c2b1160 commit 5e1d16d

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@
2424
local.properties
2525
/mysrc
2626
*.iml
27+
/local_conf

src/org/nutz/dao/impl/EntityOperator.java

+6-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,12 @@ public class EntityOperator {
4040
private int updateCount;
4141

4242
public void setMyObj(Object obj) {
43-
this.myObj = Lang.first(obj);
43+
if (obj.getClass().isArray()) {
44+
this.myObj = Lang.array2list((Object[]) obj);
45+
} else {
46+
this.myObj = obj;
47+
}
48+
4449
}
4550

4651
/**

0 commit comments

Comments
 (0)