|
|
@@ -25,7 +25,6 @@ public class GeneralInsertUpdateSqlProvider {
|
|
|
Map<String, String> map;
|
|
|
try {
|
|
|
map = getFieldsMap(obj, true, false);
|
|
|
- // 创建 需要赋当前的时间的timestamp字段 在这里排除,否则无法正常赋值
|
|
|
for (String col: ignoredCols){
|
|
|
map.remove(camelCase2Underscore(col));
|
|
|
}
|
|
|
@@ -128,6 +127,7 @@ public class GeneralInsertUpdateSqlProvider {
|
|
|
* #{colname}可以直接取到实体的属性
|
|
|
* 多参数的时候
|
|
|
* #{param1.colname}来取实体的属性
|
|
|
+ * 注:实体类一定要放第一个参数
|
|
|
*/
|
|
|
String paramPrefix = singleParam? "#{" : "#{param1.";
|
|
|
if ((!"id".equals(col) && includeNullValue) || f.get(obj) != null) {
|