diff --git a/renren-admin/src/main/java/io/renren/modules/activiti/controller/ActTaskController.java b/renren-admin/src/main/java/io/renren/modules/activiti/controller/ActTaskController.java index e18b7c7e..43d32427 100644 --- a/renren-admin/src/main/java/io/renren/modules/activiti/controller/ActTaskController.java +++ b/renren-admin/src/main/java/io/renren/modules/activiti/controller/ActTaskController.java @@ -201,7 +201,7 @@ public class ActTaskController { .map(index_ -> index_.getMember()) .filter(Objects::nonNull) .flatMap(index_ -> index_.stream()) - .map(index_ -> (String) index_.get("id")) + .map(index_ -> index_.get("id").toString()) .filter(index_ -> !userId.equals(index_)) // 过滤非本人 .distinct() .collect(Collectors.toList()); diff --git a/renren-admin/src/main/java/io/renren/modules/activiti/service/ActTaskService.java b/renren-admin/src/main/java/io/renren/modules/activiti/service/ActTaskService.java index 1c96b7a6..e6b022c1 100644 --- a/renren-admin/src/main/java/io/renren/modules/activiti/service/ActTaskService.java +++ b/renren-admin/src/main/java/io/renren/modules/activiti/service/ActTaskService.java @@ -153,7 +153,7 @@ public class ActTaskService extends BaseServiceImpl { .filter(Objects::nonNull) .filter(index -> !index.isEmpty()) .flatMap(index -> index.stream()) - .map(index -> (String) index.get("id")) + .map(index -> index.get("id").toString()) .filter(index -> !userId.equals(index)) // 过滤非本人 .distinct() .collect(Collectors.toList());