提交 ba806dfc 编写于 作者: 吕金泽

update 提前 preHandle

上级 ac49487d
......@@ -369,12 +369,12 @@ public class NamedTable extends Attributes<Object> {
if (null != data) {
data.forEach((key, value) -> this.columns.put(rowMapColumnMapper.apply(key), value));
}
preHandle(SqlMode.UPDATE);
Object primaryValue = null;
if (StringUtils.isNotBlank(this.primary)) {
primaryValue = this.columns.remove(this.primary);
}
this.withBlank = isUpdateBlank;
preHandle(SqlMode.UPDATE);
List<Map.Entry<String, Object>> entries = new ArrayList<>(filterNotBlanks());
if (entries.isEmpty()) {
throw new MagicAPIException("要修改的列不能为空");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册