We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f59f2a2 commit 3fc3c62Copy full SHA for 3fc3c62
mybatis-xml-fast-develop-core/src/main/java/com/wangshu/base/service/AbstractBaseDataService.java
@@ -75,7 +75,9 @@ public int _save(@NotNull T model) {
75
throw new IException(HttpStatus.INTERNAL_SERVER_ERROR);
76
}
77
Object primaryValue = model.safeModelAnyValueByFieldName(modelPrimaryField.getName());
78
- if (!StrUtil.isBlankIfStr(primaryValue) && Objects.nonNull(_select(modelPrimaryField.getName(), primaryValue))) {
+ if (!StrUtil.isBlankIfStr(primaryValue) && Objects.nonNull(getMapper()._select(new HashMap<>() {{
79
+ put(modelPrimaryField.getName(), primaryValue);
80
+ }}))) {
81
return _update(model);
82
83
model = saveParamFilter(model);
0 commit comments