|
@@ -20,6 +20,7 @@ import com.ruoyi.system.service.IZbPictureStoryService;
|
|
import lombok.RequiredArgsConstructor;
|
|
import lombok.RequiredArgsConstructor;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
+import java.util.Arrays;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
|
|
|
|
@@ -69,8 +70,9 @@ public class ZbCommentServiceImpl extends ServiceImpl<ZbCommentMapper, ZbComment
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- public boolean approval(Long[] ids, ApprovalStatus status) {
|
|
|
|
- for (Long commentId : ids) {
|
|
|
|
|
|
+ public boolean approval(String ids, ApprovalStatus status) {
|
|
|
|
+ String[] split = ids.split(",");
|
|
|
|
+ for (String commentId : split) {
|
|
ZbComment comment = getById(commentId);
|
|
ZbComment comment = getById(commentId);
|
|
if (comment == null) {
|
|
if (comment == null) {
|
|
throw new BaseException("评论信息不存在");
|
|
throw new BaseException("评论信息不存在");
|