| | |
| | | SysUsers user = WebUtil.getSessionAttribute(MatrixConstance.LOGIN_KEY); |
| | | SysFollowup followup = followupDao.selectById(id); |
| | | String zans=followup.getZans(); |
| | | if(StringUtils.isNotBlank(zans)){ |
| | | 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,","); |
| | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |