|
@@ -132,7 +132,7 @@ public class CommunityReportController {
|
|
|
@ApiOperation("管理员查看界面")
|
|
|
@GetMapping("/adminReport")
|
|
|
//@Anonymous
|
|
|
- public AjaxResult adminReport(Long id,Long type,String name,String reason,String userId) {
|
|
|
+ public AjaxResult adminReport(String id,Long type,String name,String reason,String userId) {
|
|
|
List<CommunityReportUserVo> communityReportUsers = null;
|
|
|
int total = 0 ;
|
|
|
try {
|
|
@@ -211,7 +211,7 @@ public class CommunityReportController {
|
|
|
reportUser.setUpdateBy(SecurityUtils.getUserId());
|
|
|
reportUser.setUpdateTime(DateUtils.parseDate(DateUtils.getTime()));
|
|
|
|
|
|
- Long replyId = communityReportPunishVo.getReplyId();
|
|
|
+ String replyId = communityReportPunishVo.getReplyId();
|
|
|
switch (disposalType) {
|
|
|
case "0": //不处理
|
|
|
break;
|
|
@@ -232,7 +232,7 @@ public class CommunityReportController {
|
|
|
case "4": //删除
|
|
|
if (replyId != null){
|
|
|
CommunityCommentReply communityCommentReply = new CommunityCommentReply();
|
|
|
- communityCommentReply.setId(communityReportPunishVo.getReplyId());
|
|
|
+ communityCommentReply.setId(Long.valueOf(communityReportPunishVo.getReplyId()));
|
|
|
communityCommentReply.setDelete(true);
|
|
|
communityCommentReply.setUpdateBy(SecurityUtils.getUserId());
|
|
|
communityCommentReply.setUpdateTime(DateUtils.parseDate(DateUtils.getTime()));
|
|
@@ -240,7 +240,7 @@ public class CommunityReportController {
|
|
|
communityReportUserMapper.updateById(reportUser);
|
|
|
}else {
|
|
|
CommunityArticleComment communityArticleComment = new CommunityArticleComment();
|
|
|
- communityArticleComment.setId(communityReportPunishVo.getCommentId());
|
|
|
+ communityArticleComment.setId(Long.valueOf(communityReportPunishVo.getCommentId()));
|
|
|
communityArticleComment.setDelete(true);
|
|
|
communityArticleComment.setUpdateBy(SecurityUtils.getUserId());
|
|
|
communityArticleComment.setUpdateTime(DateUtils.parseDate(DateUtils.getTime()));
|