|
@@ -186,7 +186,7 @@ public class CommunityReportController {
|
|
String disposalType = communityReportPunishVo.getDisposalType().toString(); //封禁类型
|
|
String disposalType = communityReportPunishVo.getDisposalType().toString(); //封禁类型
|
|
Long disposalTime = communityReportPunishVo.getDisposalTime(); //封禁时间
|
|
Long disposalTime = communityReportPunishVo.getDisposalTime(); //封禁时间
|
|
String dispositionReason = communityReportPunishVo.getDispositionReason(); //封禁理由
|
|
String dispositionReason = communityReportPunishVo.getDispositionReason(); //封禁理由
|
|
- Long typeId = communityReportPunishVo.getTypeId();//封禁ID
|
|
|
|
|
|
+
|
|
//计算封禁的时间
|
|
//计算封禁的时间
|
|
Date date = DateUtils.parseDate(DateUtils.getTime());
|
|
Date date = DateUtils.parseDate(DateUtils.getTime());
|
|
Date futureDate = null;
|
|
Date futureDate = null;
|
|
@@ -211,7 +211,7 @@ public class CommunityReportController {
|
|
reportUser.setUpdateBy(SecurityUtils.getUserId());
|
|
reportUser.setUpdateBy(SecurityUtils.getUserId());
|
|
reportUser.setUpdateTime(DateUtils.parseDate(DateUtils.getTime()));
|
|
reportUser.setUpdateTime(DateUtils.parseDate(DateUtils.getTime()));
|
|
|
|
|
|
-
|
|
|
|
|
|
+ Long replyId = communityReportPunishVo.getReplyId();
|
|
switch (disposalType) {
|
|
switch (disposalType) {
|
|
case "0": //不处理
|
|
case "0": //不处理
|
|
break;
|
|
break;
|
|
@@ -226,13 +226,13 @@ public class CommunityReportController {
|
|
case "3": //静置
|
|
case "3": //静置
|
|
CommunityArticle communityArticle = new CommunityArticle();
|
|
CommunityArticle communityArticle = new CommunityArticle();
|
|
communityArticle.setIsDraft(true);
|
|
communityArticle.setIsDraft(true);
|
|
- communityArticleService.update(communityArticle, new UpdateWrapper<CommunityArticle>().eq("id", communityReportPunishVo.getTypeId()));
|
|
|
|
|
|
+ communityArticleService.update(communityArticle, new UpdateWrapper<CommunityArticle>().eq("id", communityReportPunishVo.getArticleId()));
|
|
communityReportUserMapper.updateById(reportUser);
|
|
communityReportUserMapper.updateById(reportUser);
|
|
break;
|
|
break;
|
|
case "4": //删除
|
|
case "4": //删除
|
|
- if (communityReportPunishVo.getIsReply()){
|
|
|
|
|
|
+ if (replyId != null){
|
|
CommunityCommentReply communityCommentReply = new CommunityCommentReply();
|
|
CommunityCommentReply communityCommentReply = new CommunityCommentReply();
|
|
- communityCommentReply.setId(typeId);
|
|
|
|
|
|
+ communityCommentReply.setId(communityReportPunishVo.getReplyId());
|
|
communityCommentReply.setDelete(true);
|
|
communityCommentReply.setDelete(true);
|
|
communityCommentReply.setUpdateBy(SecurityUtils.getUserId());
|
|
communityCommentReply.setUpdateBy(SecurityUtils.getUserId());
|
|
communityCommentReply.setUpdateTime(DateUtils.parseDate(DateUtils.getTime()));
|
|
communityCommentReply.setUpdateTime(DateUtils.parseDate(DateUtils.getTime()));
|
|
@@ -240,7 +240,7 @@ public class CommunityReportController {
|
|
communityReportUserMapper.updateById(reportUser);
|
|
communityReportUserMapper.updateById(reportUser);
|
|
}else {
|
|
}else {
|
|
CommunityArticleComment communityArticleComment = new CommunityArticleComment();
|
|
CommunityArticleComment communityArticleComment = new CommunityArticleComment();
|
|
- communityArticleComment.setId(typeId);
|
|
|
|
|
|
+ communityArticleComment.setId(communityReportPunishVo.getCommentId());
|
|
communityArticleComment.setDelete(true);
|
|
communityArticleComment.setDelete(true);
|
|
communityArticleComment.setUpdateBy(SecurityUtils.getUserId());
|
|
communityArticleComment.setUpdateBy(SecurityUtils.getUserId());
|
|
communityArticleComment.setUpdateTime(DateUtils.parseDate(DateUtils.getTime()));
|
|
communityArticleComment.setUpdateTime(DateUtils.parseDate(DateUtils.getTime()));
|