Browse Source

1、修改baseService

zhoux 2 years ago
parent
commit
f0f09076ce
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/java/com/dk/common/service/BaseService.java

+ 1 - 1
src/main/java/com/dk/common/service/BaseService.java

@@ -141,7 +141,7 @@ public abstract class BaseService<T> extends ServiceImpl<com.baomidou.mybatisplu
                     }
                 })
                 .collect(Collectors.toList());
-        return super.update(new UpdateWrapper<T>().set(String.valueOf(PojoConfig.VALUES.get("validKey")), PojoConfig.VALUES.get("unValid")).in(getPrimaryKey(), uuidList).eq(String.valueOf(PojoConfig.VALUES.get("validKey")), PojoConfig.VALUES.get("isValid"))) ?
+        return super.update(new UpdateWrapper<T>().set(String.valueOf(PojoConfig.VALUES.get("validKey")), PojoConfig.VALUES.get("isValid")).in(getPrimaryKey(), uuidList).eq(String.valueOf(PojoConfig.VALUES.get("validKey")), PojoConfig.VALUES.get("unValid"))) ?
                 ResponseResultUtil.success() : ResponseResultUtil.error(ResponseCodeEnum.ENABLE_FAIL);
 //        return ResponseResultUtil.success(SqlHelper.retBool(getRepository().disableBatch(ids)));
     }