Skip to content

Commit

Permalink
解决Service层调用兼容问题.
Browse files Browse the repository at this point in the history
  • Loading branch information
nieqiurong committed Apr 10, 2024
1 parent be2f0c3 commit 415f5ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
APP_VERSION=3.5.6
APP_VERSION=3.5.7-SNAPSHOT
APP_GROUP=com.baomidou
signing.keyId=1FD337F9
signing.password=243194995
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ default int deleteById(Serializable id) {
* @since 3.5.7
*/
default int deleteById(Serializable id, boolean useFill) {
if (useFill) {
Class<?> entityClass = GenericTypeUtils.resolveTypeArguments(getClass(), BaseMapper.class)[0];
Class<?> entityClass = GenericTypeUtils.resolveTypeArguments(getClass(), BaseMapper.class)[0];
if (!entityClass.isAssignableFrom(id.getClass()) && useFill) {
TableInfo tableInfo = TableInfoHelper.getTableInfo(entityClass);
if (tableInfo.isWithLogicDelete() && tableInfo.isWithUpdateFill()) {
T instance = tableInfo.newInstance();
Expand Down

0 comments on commit 415f5ae

Please sign in to comment.