Commit fbee8f62 authored by Quxl's avatar Quxl

x

parent 28cf2dc7
...@@ -258,8 +258,7 @@ public class JdbcTemplate extends org.springframework.jdbc.core.JdbcTemplate { ...@@ -258,8 +258,7 @@ public class JdbcTemplate extends org.springframework.jdbc.core.JdbcTemplate {
String[] pks = desc.getFieldPkNames(); String[] pks = desc.getFieldPkNames();
if(pks != null && pks.length > 0) { if(pks != null && pks.length > 0) {
if(ReflexUtil.readField(pks[0], obj) == null) { if(ReflexUtil.readField(pks[0], obj) == null) {
Integer keyVal = keyHolder.getKey().intValue(); ReflexUtil.writeField(pks[0], obj, keyHolder.getKey());
ReflexUtil.writeField(pks[0], obj, keyVal);
} }
} }
} }
......
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