From a672e4e8c05be9c763943a06cfe5220ef217934c Mon Sep 17 00:00:00 2001 From: wzy <wzy19931122ai@163.com> Date: Sat, 23 Jan 2021 20:07:44 +0800 Subject: [PATCH] modify --- zq-erp/src/main/java/com/matrix/system/app/action/ApiFollowupAction.java | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-) diff --git a/zq-erp/src/main/java/com/matrix/system/app/action/ApiFollowupAction.java b/zq-erp/src/main/java/com/matrix/system/app/action/ApiFollowupAction.java index ddd6408..13455fa 100644 --- a/zq-erp/src/main/java/com/matrix/system/app/action/ApiFollowupAction.java +++ b/zq-erp/src/main/java/com/matrix/system/app/action/ApiFollowupAction.java @@ -116,7 +116,7 @@ if(StringUtils.isBlank(zans)){ List<Long> zanIds = StringUtils.strToCollToLong(zans, ","); List<Long> zaned = zanIds.stream().filter(zanid -> zanid.equals(user.getSuId())).collect(Collectors.toList()); - if(CollectionUtils.isNotEmpty(zaned)){ + if(CollectionUtils.isEmpty(zaned)){ //取消赞 List<Long> newZaned = zanIds.stream().filter(zanid -> !zanid.equals(user.getSuId())).collect(Collectors.toList()); zans=StringUtils.collToStr(newZaned,","); @@ -166,4 +166,15 @@ } + + + + + + + + + + + } \ No newline at end of file -- Gitblit v1.9.1